Skip to content

Commit

Permalink
chore: add consumer base fetch err unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulsametileri committed Dec 16, 2023
1 parent 56d3376 commit 6be80c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions consumer_base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"sync"
"testing"
"time"

"github.com/google/go-cmp/cmp"

Expand All @@ -26,6 +27,9 @@ func Test_base_startConsume(t *testing.T) {

// When
go b.startConsume()

// Ensure some time passes
time.Sleep(3 * time.Second)
b.quit <- struct{}{}

// Then
Expand Down

0 comments on commit 6be80c7

Please sign in to comment.