Skip to content

Commit

Permalink
uniform usage of constantPred
Browse files Browse the repository at this point in the history
  • Loading branch information
jandelgado committed Aug 28, 2024
1 parent cdc2c0c commit b4e7373
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/rabtap/cmd_subscribe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ func TestCmdSub(t *testing.T) {
queue: testQueue,
tlsConfig: tlsConfig,
messageReceiveFunc: receiveFunc,
filterPred: &constantPred{true},
termPred: &constantPred{false},
filterPred: constantPred{true},
termPred: constantPred{false},
timeout: time.Second * 10,
})

Expand Down
4 changes: 2 additions & 2 deletions cmd/rabtap/cmd_tap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func TestCmdTap(t *testing.T) {
go cmdTap(ctx, CmdTapArg{tapConfig: tapConfig,
tlsConfig: &tls.Config{},
messageReceiveFunc: receiveFunc,
filterPred: &constantPred{true},
termPred: &constantPred{false},
filterPred: constantPred{true},
termPred: constantPred{false},
timeout: time.Second * 10})

time.Sleep(time.Second * 1)
Expand Down

0 comments on commit b4e7373

Please sign in to comment.