Skip to content

Commit

Permalink
sleep away the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Dec 18, 2024
1 parent ab3c013 commit ca24881
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/runner/pubsub/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ func TestPubSub(t *testing.T) {
in.CopyModule("subscriber"),
in.Deploy("publisher"),

// After a deployment is "ready" it can take a second before a consumer group claims partitions.
// "publisher.local" has "from=latest" so we need that group to be ready before we start publishing
// otherwise it will start from the latest offset after claiming partitions.
in.Sleep(time.Second*1),

// publish half the events before subscriber is deployed
publishToTestAndLocalTopics(calls/2),

Expand Down

0 comments on commit ca24881

Please sign in to comment.