Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 9b717bf

Browse files
authored
Fix a race condition with logCache.entries (#634)
This race condition was found in a CI job which failed.
1 parent bb665cd commit 9b717bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/browser_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,12 @@ func TestBrowserLogIterationID(t *testing.T) {
167167
)
168168

169169
require.NotEmpty(t, iterID)
170-
require.NotEmpty(t, tb.logCache.entries)
171170

172171
tb.logCache.mu.RLock()
173172
defer tb.logCache.mu.RUnlock()
173+
174+
require.NotEmpty(t, tb.logCache.entries)
175+
174176
for _, evt := range tb.logCache.entries {
175177
for k, v := range evt.Data {
176178
if k == "iteration_id" {

0 commit comments

Comments
 (0)