Fix test statement with formatting in fatal call

This commit is contained in:
Jeff Mitchell 2018-02-20 00:26:41 -05:00
parent 2d22d8a99a
commit f73e11089f

View File

@ -29,7 +29,7 @@ func ExerciseBackend(t testing.TB, b Backend) {
// Get should not fail, but be nil // Get should not fail, but be nil
out, err := b.Get(context.Background(), "foo") out, err := b.Get(context.Background(), "foo")
if err != nil { if err != nil {
t.Fatal("initial get failed: %v", err) t.Fatalf("initial get failed: %v", err)
} }
if out != nil { if out != nil {
t.Errorf("initial get was not nil: %v", out) t.Errorf("initial get was not nil: %v", out)