Skip to content

Commit

Permalink
memstore: don't use predeclared identifier clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Freax13 committed Sep 11, 2024
1 parent 6bcabfa commit 40ddd11
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions internal/memstore/memstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func TestStoreConcurrent(t *testing.T) {
defer wg.Done()
s.Set(key, value)
}
clear := func() {
clearStore := func() {
defer wg.Done()
s.Clear()
}
Expand All @@ -187,10 +187,10 @@ func TestStoreConcurrent(t *testing.T) {
}

wg.Add(16)
go clear()
go clear()
go clear()
go clear()
go clearStore()
go clearStore()
go clearStore()
go clearStore()
go set("foo", 1)
go set("bar", 2)
go set("baz", 3)
Expand All @@ -199,10 +199,10 @@ func TestStoreConcurrent(t *testing.T) {
go getAll()
go getAll()
go getAll()
go clear()
go clear()
go clear()
go clear()
go clearStore()
go clearStore()
go clearStore()
go clearStore()
wg.Wait()

s.Clear()
Expand Down

0 comments on commit 40ddd11

Please sign in to comment.