Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Dec 12, 2024
1 parent 9a1c974 commit 097c4e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/runner/pubsub/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,11 @@ func TestRetry(t *testing.T) {
// publish events
in.Call("publisher", "publishOneToTopic2", map[string]any{"haystack": "firstCall"}, func(t testing.TB, resp in.Obj) {}),
in.Call("publisher", "publishOneToTopic2", map[string]any{"haystack": "secondCall"}, func(t testing.TB, resp in.Obj) {}),
in.Call("publisher", "publishOneToTopic2", map[string]any{"haystack": "thirdCall"}, func(t testing.TB, resp in.Obj) {}),

in.Sleep(time.Second*6),
in.Sleep(time.Second*7),

checkConsumed("subscriber", "consumeButFailAndRetry", false, retriesPerCall+1, optional.Some("firstCall")),
checkConsumed("subscriber", "consumeButFailAndRetry", false, retriesPerCall+1, optional.Some("secondCall")),
checkConsumed("subscriber", "consumeButFailAndRetry", false, retriesPerCall+1, optional.Some("thirdCall")),
)
}

Expand Down

0 comments on commit 097c4e0

Please sign in to comment.