forked from pothtonswer/discordmuffin
Fixed some test comment wording.
This commit is contained in:
parent
c291988335
commit
2b4b19cfd8
1 changed files with 2 additions and 1 deletions
|
@ -256,7 +256,7 @@ func TestAddHandler(t *testing.T) {
|
||||||
t.Fatalf("testHandler was not called twice.")
|
t.Fatalf("testHandler was not called twice.")
|
||||||
}
|
}
|
||||||
|
|
||||||
// interfaceHandler will be called twice for each event.
|
// interfaceHandler will be called twice, once for each event.
|
||||||
if interfaceHandlerCalled != 2 {
|
if interfaceHandlerCalled != 2 {
|
||||||
t.Fatalf("interfaceHandler was not called twice.")
|
t.Fatalf("interfaceHandler was not called twice.")
|
||||||
}
|
}
|
||||||
|
@ -281,6 +281,7 @@ func TestRemoveHandler(t *testing.T) {
|
||||||
|
|
||||||
d.handle(&MessageCreate{})
|
d.handle(&MessageCreate{})
|
||||||
|
|
||||||
|
// testHandler will be called once, as it was removed in between calls.
|
||||||
if testHandlerCalled != 1 {
|
if testHandlerCalled != 1 {
|
||||||
t.Fatalf("testHandler was not called once.")
|
t.Fatalf("testHandler was not called once.")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue