Skip to content

Commit ed8f4d6

Browse files
committed
Fixed failing unit test around allowing moderators past cooldown
1 parent 6203b40 commit ed8f4d6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Test/Chatbot/WhenChatMessageSent.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,7 @@ public void ShouldIgnoreCommandsToFastIfModerator()
195195
_chatservice.Raise(cs => cs.ChatMessage += null, args);
196196
_chatservice.Raise(cs => cs.ChatMessage += null, args);
197197

198-
var verifyTimes = Moq.Times.Once();
199-
200-
#if !DEBUG
201-
verifyTimes = Moq.Times.Exactly(2);
202-
#endif
198+
var verifyTimes = Moq.Times.Exactly(2);
203199

204200
_chatservice.Verify(sm => sm.SendMessageAsync(
205201
It.Is<string>(x => x.StartsWith("Supported commands:"))),

0 commit comments

Comments
 (0)