Skip to content

Commit

Permalink
remove redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
demonsh committed Jan 13, 2025
1 parent f30eb36 commit 60edc8b
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions loaders/embededKeyLoader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,24 +214,6 @@ func TestFSKeyLoader_Load_KeyNotFound(t *testing.T) {

func TestEmbeddedKeyLoader_CacheConcurrency(t *testing.T) {
loader := NewEmbeddedKeyLoader()
testID := circuits.CircuitID("test-circuit")
testKey := []byte("test-key-data")

// Test concurrent reads
t.Run("concurrent reads", func(t *testing.T) {
loader.storeInCache(testID, testKey)

var wg sync.WaitGroup
for i := 0; i < 100; i++ {
wg.Add(1)
go func() {
defer wg.Done()
key := loader.getFromCache(testID)
assert.Equal(t, testKey, key)
}()
}
wg.Wait()
})

// Test concurrent writes
t.Run("concurrent writes", func(t *testing.T) {
Expand Down

0 comments on commit 60edc8b

Please sign in to comment.