Skip to content

Commit

Permalink
core/internal/features/ocr2: fix TestIntegration_OCR2_ForwarderFlow r…
Browse files Browse the repository at this point in the history
…ace by delaying mining (#15397)
  • Loading branch information
jmank88 authored Nov 25, 2024
1 parent 1168674 commit b5b1e00
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 @@ -738,14 +738,6 @@ func TestIntegration_OCR2_ForwarderFlow(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, forwarderContracts, transmitters, func(int64) string {
return fmt.Sprintf(`
type = "bootstrap"
Expand All @@ -759,6 +751,14 @@ chainID = 1337
`, ocrContractAddress)
})

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 b5b1e00

Please sign in to comment.