Skip to content

Commit

Permalink
Try adding 5s sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
reductionista committed Dec 21, 2023
1 parent 19c20b3 commit 0a701cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions integration-tests/actions/ocr2_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ func StartNewOCR2Round(
timeout time.Duration,
logger zerolog.Logger,
) error {
time.Sleep(5 * time.Second)
for i := 0; i < len(ocrInstances); i++ {
err := ocrInstances[i].RequestNewRound()
if err != nil {
Expand Down
11 changes: 3 additions & 8 deletions integration-tests/smoke/chain_reader_and_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,8 @@ func TestOCRv2BasicWithChainReaderAndCodec(t *testing.T) {

fmt.Printf("want 15 it's %v\n", roundData.Answer.Int64())

/*require.Equal(t, int64(10), roundData.Answer.Int64(),
"Expected latest answer from OCR contract to be 10 but got %d",
require.Equal(t, int64(15), roundData.Answer.Int64(),
"Expected latest answer from OCR contract to be 15 but got %d",
roundData.Answer.Int64(),
)*/

fmt.Println("SLEEPING NOW")
time.Sleep(time.Hour)
fmt.Println("DONE SLEEPING")
require.Fail(t, "Capture logs")
)
}

0 comments on commit 0a701cc

Please sign in to comment.