Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: add bytes in badChannel test
  • Loading branch information
plyr4 committed Feb 27, 2023
commit a78c633f6cef3a69337a15c95b0f8f8ff9a6b55e
6 changes: 6 additions & 0 deletions queue/redis/pop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ func TestRedis_Pop(t *testing.T) {
// overwrite channel to be invalid
badChannel.config.Channels = nil

// push something to badChannel queue
err = badChannel.Redis.RPush(context.Background(), "vela", bytes).Err()
if err != nil {
t.Errorf("unable to push item to queue: %v", err)
}

// setup tests
tests := []struct {
failure bool
Expand Down