diff --git a/driver_test.go b/driver_test.go index 351ab1d..7053a2d 100644 --- a/driver_test.go +++ b/driver_test.go @@ -70,10 +70,10 @@ func TestPoolConfig(t *testing.T) { } c := mock.Config() if c == nil { - t.Error("expected config object, but got nil") + t.Fatal("expected config object, but got nil") } if c.ConnConfig == nil { - t.Error("expected conn config object, but got nil") + t.Fatal("expected conn config object, but got nil") } } @@ -84,6 +84,6 @@ func TestConnConfig(t *testing.T) { } c := mock.Config() if c == nil { - t.Error("expected config object, but got nil") + t.Fatal("expected config object, but got nil") } }