Skip to content

Commit

Permalink
chore: bump pubsub consumer rx timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Jan 23, 2023
1 parent 5c03f35 commit 5e33745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/pubsub_msg_seen_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func RunMessageSeenCacheTTLTest(t *testing.T, seenMessagesCacheTTL string) error
}
consumeMessage := func(msgTxt string, shouldFind bool) {
// Set up a separate timed context for receiving messages
rxCtx, rxCancel := context.WithTimeout(context.Background(), time.Second)
rxCtx, rxCancel := context.WithTimeout(context.Background(), 5*time.Second)
defer rxCancel()
msg, err := consumerSubscription.Next(rxCtx)
if shouldFind {
Expand Down

0 comments on commit 5e33745

Please sign in to comment.