Skip to content

Commit

Permalink
Updated test helper for checking msg with given type received or not
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Sep 6, 2024
1 parent 9689fcd commit bd39bc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ably/ably_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ func (rec *MessageRecorder) CheckIfReceived(action ably.ProtoAction, times int)
}
}
}
if times == 0 && times == counter {
// Check if no msg of given action type received
if times == 0 && counter == 0 {
return true
}
return false
Expand Down

0 comments on commit bd39bc3

Please sign in to comment.