Skip to content

Commit 7d8922c

Browse files
committed
test fix.
Signed-off-by: Volkan Özçelik <me@volkan.io>
1 parent f222516 commit 7d8922c

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

app/bootstrap/internal/state/test_helper.go

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,8 @@ import (
1212
"github.com/spiffe/spike-sdk-go/crypto"
1313
)
1414

15-
// resetRootSharesForTesting resets the rootSharesGenerated flag to allow
16-
// multiple calls to RootShares() within tests. This function should ONLY be
17-
// used in test code to enable testing of RootShares() behavior.
18-
//
19-
// WARNING: This function should never be called in production code.
20-
func resetRootSharesForTesting() {
21-
rootSharesGeneratedMu.Lock()
22-
rootSharesGenerated = false
23-
rootSharesGeneratedMu.Unlock()
24-
}
25-
26-
// Helper function to create test shares with known structure
15+
// createTestShares creates test shares with known structure for testing
16+
// KeeperShare and related functionality.
2717
func createTestShares(t *testing.T, numShares int) []shamir.Share {
2818
g := group.P256
2919

0 commit comments

Comments
 (0)