Explorar el Código

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

Evan Huus hace 10 años
padre
commit
a321303f68
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
 			}
 		}