Skip to content

Commit

Permalink
Fix for flaky stream_view test (#179)
Browse files Browse the repository at this point in the history
This didn’t return an error here:
https://github.com/river-build/river/actions/runs/9521356160/job/26248585342?pr=177

probably the time was too tight.
  • Loading branch information
texuf authored Jun 14, 2024
1 parent 55a9594 commit 9b901ac
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/node/events/stream_view_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package events

import (
"testing"
"time"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
Expand All @@ -12,8 +15,6 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/proto"
"testing"
"time"
)

func parsedEvent(t *testing.T, envelope *Envelope) *ParsedEvent {
Expand Down Expand Up @@ -270,8 +271,8 @@ func TestLoad(t *testing.T) {
assert.NoError(t, err)
_, err = newSV1.copyAndAddEvent(nextEvent)
assert.NoError(t, err)
// wait 1 second
time.Sleep(1 * time.Second)
// wait 2 second
time.Sleep(2 * time.Second)
// try with tighter recency constraints
setOnChainStreamConfig(ctx, btc, testParams{
recencyConstraintsGenerations: 5,
Expand Down

0 comments on commit 9b901ac

Please sign in to comment.