소스 검색

Fixed some test comment wording.

Chris Rhodes 9 년 전
부모
커밋
2b4b19cfd8
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      discord_test.go

+ 2 - 1
discord_test.go

@@ -256,7 +256,7 @@ func TestAddHandler(t *testing.T) {
 		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 {
 		t.Fatalf("interfaceHandler was not called twice.")
 	}
@@ -281,6 +281,7 @@ func TestRemoveHandler(t *testing.T) {
 
 	d.handle(&MessageCreate{})
 
+	// testHandler will be called once, as it was removed in between calls.
 	if testHandlerCalled != 1 {
 		t.Fatalf("testHandler was not called once.")
 	}