Browse Source

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

Evan Huus 10 years ago
parent
commit
a321303f68
1 changed files with 1 additions and 1 deletions
  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)
 			}
 		}