Skip to content

Commit

Permalink
this is just an smoke test for consumefromqueue function to see if it…
Browse files Browse the repository at this point in the history
… stops when a context cancel gets there
  • Loading branch information
gabo1208 authored and Gabriel Freites committed Jul 27, 2023
1 parent 4b38a8f commit 2c761bb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/dispatcher/dispatcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ func TestDispatcher_ConsumeFromQueue(t *testing.T) {
time.Sleep(1000)
cancelFunc()
}()

if err := d.ConsumeFromQueue(ctx, &rabbit.RabbitMQConnectionMock{}, &rabbit.RabbitMQChannelMock{}, ""); err != nil {
t.Errorf("ConsumeFromQueue() error = %v", err)
}
d.ConsumeFromQueue(ctx, &rabbit.RabbitMQConnectionMock{}, &rabbit.RabbitMQChannelMock{}, "")
}

func TestDispatcher_ReadSpan(t *testing.T) {
Expand Down

0 comments on commit 2c761bb

Please sign in to comment.