From bf64f18ea70a44bf6d9eb7ceafb74756aea2cc9d Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Sat, 20 Jun 2026 20:41:07 +0200 Subject: bump gg to 0.10.0, use gg/assert --- query_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'query_test.go') 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) { -- cgit v1.3.1