This commit is contained in:
parent
fae6f35774
commit
8d188217e9
1 changed files with 2 additions and 2 deletions
|
@ -127,11 +127,11 @@ func TestOnMessage(t *testing.T) {
|
|||
responses := plugin.OnMessage(msg, config)
|
||||
|
||||
if test.expectBlocked {
|
||||
if responses == nil || len(responses) == 0 {
|
||||
if len(responses) == 0 {
|
||||
t.Errorf("Expected message to be blocked, but it wasn't")
|
||||
}
|
||||
} else {
|
||||
if responses != nil && len(responses) > 0 {
|
||||
if len(responses) > 0 {
|
||||
t.Errorf("Expected message not to be blocked, but it was")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue