Skip to content

Commit

Permalink
test(pubsub): use background context for nack test (#6563)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongalex committed Aug 25, 2022
1 parent ceba364 commit e8955d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pubsub/subscription_test.go
Expand Up @@ -667,7 +667,7 @@ func TestExactlyOnceDelivery_NackSuccess(t *testing.T) {
}
err = s.Receive(ctx, func(ctx context.Context, msg *Message) {
ar := msg.NackWithResult()
s, err := ar.Get(ctx)
s, err := ar.Get(context.Background())
if s != AcknowledgeStatusSuccess {
t.Errorf("AckResult AckStatus got %v, want %v", s, AcknowledgeStatusSuccess)
}
Expand Down

0 comments on commit e8955d9

Please sign in to comment.