From 84e120cbab8c089103d671938a15f4fcf77838ad Mon Sep 17 00:00:00 2001 From: go-jet Date: Thu, 21 Oct 2021 17:30:57 +0200 Subject: [PATCH] Test fix. --- .circleci/config.yml | 3 ++- tests/sqlite/alltypes_test.go | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 69c25af..c3629b7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -88,7 +88,8 @@ jobs: - run: mkdir -p $TEST_RESULTS - - run: MY_SQL_SOURCE=MySQL go test -v ./... -coverpkg=github.com/go-jet/jet/postgres/...,github.com/go-jet/jet/mysql/...,github.com/go-jet/jet/qrm/...,github.com/go-jet/jet/generator/...,github.com/go-jet/jet/internal/... -coverprofile=cover.out 2>&1 | go-junit-report > $TEST_RESULTS/results.xml + # this will run all tests and exclude test files from code coverage report + - run: MY_SQL_SOURCE=MySQL go test -v ./... -coverpkg=github.com/go-jet/jet/postgres/...,github.com/go-jet/jet/mysql/...,github.com/go-jet/jet/sqlite/...,github.com/go-jet/jet/qrm/...,github.com/go-jet/jet/generator/...,github.com/go-jet/jet/internal/... -coverprofile=cover.out 2>&1 | go-junit-report > $TEST_RESULTS/results.xml - run: name: Upload code coverage diff --git a/tests/sqlite/alltypes_test.go b/tests/sqlite/alltypes_test.go index c52d709..523d959 100644 --- a/tests/sqlite/alltypes_test.go +++ b/tests/sqlite/alltypes_test.go @@ -906,7 +906,6 @@ func TestDateTimeExpressions(t *testing.T) { require.Equal(t, dest.DateTime2.String(), "2012-01-19 13:17:17 +0000 UTC") require.Equal(t, dest.DateTime3.String(), "2009-11-17 20:34:58 +0000 UTC") require.True(t, dest.DateTime4.After(time.Now().Add(-1*time.Minute))) - require.Equal(t, dest.DateTime5.String(), "2009-11-17 21:34:58 +0000 UTC") require.Equal(t, dest.JulianDay, 2.4551543576232754e+06) require.Equal(t, dest.StrfTime, "20:34") }