-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github.com/ProtonMail/go-crypto v1.1.0-alpha.5.0.20240827111422-b5837fa4476e contains a fix for a data race, so we no longer need a mutex in `pgp.Key.Sign`. Add a test just in case something goes wrong in the future. Bump: - run rekres - github.com/ProtonMail/go-crypto to v1.1.0-alpha.5.0.20240827111422-b5837fa4476e - github.com/adrg/xdg to v0.5.0 - github.com/grpc-ecosystem/grpc-gateway/v2 to v2.22.0 - google.golang.org/grpc to v1.66.0 - google.golang.org/protobuf to v1.34.2 - golang.org/x/crypto to v0.26.0 - golang.org/x/net to v0.28.0 - golang.org/x/sys to v0.24.0 - golang.org/x/text to v0.17.0 - google.golang.org/genproto/googleapis/api to v0.0.0-20240827150818-7e3bb234dfed - google.golang.org/genproto/googleapis/rpc to v0.0.0-20240827150818-7e3bb234dfed Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
- Loading branch information
Showing
8 changed files
with
168 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
//go:build race | ||
|
||
package pgp_test | ||
|
||
import ( | ||
"testing" | ||
"time" | ||
|
||
"github.com/stretchr/testify/require" | ||
|
||
"github.com/siderolabs/go-api-signature/pkg/pgp" | ||
) | ||
|
||
func TestKeyFlowParallel(t *testing.T) { | ||
key, err := pgp.GenerateKey("John Smith", "Linux", "john.smith@example.com", time.Hour) | ||
require.NoError(t, err) | ||
|
||
t.Run("parallel_section", func(t *testing.T) { | ||
for range 10 { | ||
t.Run("KeyFlow", func(t *testing.T) { | ||
t.Parallel() | ||
|
||
for range 10 { | ||
testKeyFlow(t, key) | ||
} | ||
}) | ||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters