From 98a086d503831719ae7e2dfd7c4ab0cde928195b Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Wed, 2 Oct 2024 14:16:40 -0700 Subject: [PATCH] Refactor test. --- lib/postgres/schema/schema_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/postgres/schema/schema_test.go b/lib/postgres/schema/schema_test.go index 142e0386..798c78ac 100644 --- a/lib/postgres/schema/schema_test.go +++ b/lib/postgres/schema/schema_test.go @@ -140,7 +140,7 @@ func TestParseColumnDataType(t *testing.T) { // unsupported dataType, opts, err := ParseColumnDataType("foo", nil, nil, nil) assert.ErrorContains(t, err, `unknown data type: "foo"`) - assert.Zero(t, dataType) + assert.Equal(t, -1, int(dataType)) assert.Nil(t, opts) } }