From b2d95e376062be4e37057f9773628a792a4a8ebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Tue, 24 Dec 2024 20:58:33 +0000 Subject: [PATCH] golangci-lint 1.62 --- .github/workflows/golang-lint.yml | 2 +- flow/connectors/postgres/qrep_query_executor_test.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/golang-lint.yml b/.github/workflows/golang-lint.yml index 2a176a077e..9b4e558a75 100644 --- a/.github/workflows/golang-lint.yml +++ b/.github/workflows/golang-lint.yml @@ -29,6 +29,6 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6 with: - version: v1.61 + version: v1.62 working-directory: ./flow args: --timeout=10m diff --git a/flow/connectors/postgres/qrep_query_executor_test.go b/flow/connectors/postgres/qrep_query_executor_test.go index eaa015c1cf..78f82b07ea 100644 --- a/flow/connectors/postgres/qrep_query_executor_test.go +++ b/flow/connectors/postgres/qrep_query_executor_test.go @@ -186,8 +186,7 @@ func TestAllDataTypes(t *testing.T) { expectedBytea := []byte("bytea") require.Equal(t, expectedBytea, record[6].Value(), "expected 'bytea'") - expectedJSON := `{"key":"value"}` - require.Equal(t, expectedJSON, record[7].Value(), "expected '{\"key\":\"value\"}'") + require.JSONEq(t, `{"key":"value"}`, record[7].Value().(string), "expected '{\"key\":\"value\"}'") actualUUID := record[8].Value().(uuid.UUID) require.Equal(t, savedUUID[:], actualUUID[:], "expected savedUUID: %v", savedUUID)