Skip to content

Commit

Permalink
fix test race
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin committed Dec 6, 2024
1 parent 887aae7 commit e0a6883
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gturbine/gtshred/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ func TestProcessorMemoryCleanup(t *testing.T) {
time.Sleep(cleanupInterval * 4)

// Verify completed block was cleaned up
p.completedBlocksMu.RLock()
defer p.completedBlocksMu.RUnlock()
if _, exists := p.completedBlocks[string(group.BlockHash)]; exists {
t.Error("completed block should have been cleaned up")
}
Expand Down

0 comments on commit e0a6883

Please sign in to comment.