Browse Source

use Fatalf not Fatal when using format arguments (caught by vet)

Evan Huus 11 năm trước cách đây
mục cha
commit
a321303f68
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      functional_test.go

+ 1 - 1
functional_test.go

@@ -81,7 +81,7 @@ func TestProducingMessages(t *testing.T) {
 
 		case event := <-events:
 			if string(event.Value) != fmt.Sprintf("testing %d", i) {
-				t.Fatal("Unexpected message with index %d: %s", i, event.Value)
+				t.Fatalf("Unexpected message with index %d: %s", i, event.Value)
 			}
 		}