Skip to content

Commit

Permalink
fix: Test for the SQS subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
Neurostep committed Nov 8, 2024
1 parent a016bc3 commit d44e0b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/pubsub/sqs/subscriber_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ type (
func (m *mockSQSClient) ReceiveMessage(
ctx context.Context,
params *sqs.ReceiveMessageInput, optFns ...func(*sqs.Options)) (*sqs.ReceiveMessageOutput, error) {
// simulate a long poll
time.Sleep(time.Millisecond * 10)

return &sqs.ReceiveMessageOutput{
Messages: m.msgs,
}, nil
Expand Down

0 comments on commit d44e0b0

Please sign in to comment.