diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-06-20 20:41:07 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-06-20 20:41:07 +0200 |
| commit | bf64f18ea70a44bf6d9eb7ceafb74756aea2cc9d (patch) | |
| tree | 0e33a457b7c12e65861ad2822f605b55ea4898c8 /query_test.go | |
| parent | 7be01bbd68af248331c8c9ad321eafef2e7d4824 (diff) | |
| download | go-oblast-bf64f18ea70a44bf6d9eb7ceafb74756aea2cc9d.tar.gz | |
bump gg to 0.10.0, use gg/assert
Diffstat (limited to 'query_test.go')
| -rw-r--r-- | query_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/query_test.go b/query_test.go index 6013201..7016c61 100644 --- a/query_test.go +++ b/query_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" + "go.xyrillian.de/gg/assert" "go.xyrillian.de/oblast" - "go.xyrillian.de/oblast/internal/testhelpers/assert" "go.xyrillian.de/oblast/internal/testhelpers/mock" "go.xyrillian.de/oblast/internal/testhelpers/must" ) @@ -206,12 +206,12 @@ func TestUpsertBasicWithAutoColumn(t *testing.T) { } must.Succeed(t, store.Upsert(ctx, db, records...)) - assert.SliceDeepEqual(t, records, - &basicRecord{ID: 1, Name: "first needs insert"}, - &basicRecord{ID: 2, Name: "second needs update"}, - &basicRecord{ID: 3, Name: "third needs insert"}, - &basicRecord{ID: 4, Name: "fourth needs update"}, - ) + assert.Equal(t, records, []*basicRecord{ + {ID: 1, Name: "first needs insert"}, + {ID: 2, Name: "second needs update"}, + {ID: 3, Name: "third needs insert"}, + {ID: 4, Name: "fourth needs update"}, + }) } func TestWriteQueriesNotPossible(t *testing.T) { |
