File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ func TestAddEventsManyLogsShouldSucceed(t *testing.T) {
5353 processedEvents := atomic.Uint64 {}
5454 seenKeys := make (map [string ]int64 )
5555 expectedKeys := make (map [string ]int64 )
56- mutex := & sync.RWMutex {}
56+ seenMutex := & sync.RWMutex {}
5757
5858 server := httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , req * http.Request ) {
5959 attempt .Add (1 )
@@ -65,14 +65,14 @@ func TestAddEventsManyLogsShouldSucceed(t *testing.T) {
6565 processedEvents .Add (1 )
6666 key , found := ev .Attrs ["body.str" ]
6767 assert .True (t , found )
68- mutex .Lock ()
68+ seenMutex .Lock ()
6969 sKey := key .(string )
7070 _ , f := seenKeys [sKey ]
7171 if ! f {
7272 seenKeys [sKey ] = 0
7373 }
7474 seenKeys [sKey ] += 1
75- mutex .Unlock ()
75+ seenMutex .Unlock ()
7676 }
7777
7878 lastCall .Store (time .Now ().UnixNano ())
You can’t perform that action at this time.
0 commit comments