Skip to content

Commit

Permalink
core/internal/features/ocr2: fix TestIntegration_OCR2 race (#15329)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 authored Nov 20, 2024
1 parent 5c7e945 commit 5c3e775
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/internal/features/ocr2/features_ocr2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,6 @@ func testIntegration_OCR2(t *testing.T) {
})
}

tick := time.NewTicker(1 * time.Second)
defer tick.Stop()
go func() {
for range tick.C {
b.Commit()
}
}()

blockBeforeConfig := initOCR2(t, lggr, b, ocrContract, owner, bootstrapNode, oracles, transmitters, transmitters, func(blockNum int64) string {
return fmt.Sprintf(`
type = "bootstrap"
Expand All @@ -260,6 +252,14 @@ fromBlock = %d
`, ocrContractAddress, blockNum)
})

tick := time.NewTicker(1 * time.Second)
defer tick.Stop()
go func() {
for range tick.C {
b.Commit()
}
}()

var jids []int32
var servers, slowServers = make([]*httptest.Server, 4), make([]*httptest.Server, 4)
// We expect metadata of:
Expand Down

0 comments on commit 5c3e775

Please sign in to comment.