From 8bc726c287318021c141a58899358c1802d28ebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Garcia?= Date: Sun, 19 Sep 2021 18:30:19 -0300 Subject: [PATCH] Improve tests for Update() --- ksql_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ksql_test.go b/ksql_test.go index 41dff23..a83163c 100644 --- a/ksql_test.go +++ b/ksql_test.go @@ -1070,7 +1070,7 @@ func TestUpdate(t *testing.T) { t.Fatal("could not create test table!, reason:", err.Error()) } - t.Run("should update one user correctly", func(t *testing.T) { + t.Run("should update one User{} correctly", func(t *testing.T) { db, closer := connectDB(t, config) defer closer.Close() @@ -1099,7 +1099,7 @@ func TestUpdate(t *testing.T) { assert.Equal(t, "Thayane", result.Name) }) - t.Run("should update one user correctly", func(t *testing.T) { + t.Run("should update one &User{} correctly", func(t *testing.T) { db, closer := connectDB(t, config) defer closer.Close() @@ -1116,7 +1116,7 @@ func TestUpdate(t *testing.T) { assert.Equal(t, nil, err) assert.NotEqual(t, uint(0), u.ID) - err = c.Update(ctx, UsersTable, User{ + err = c.Update(ctx, UsersTable, &User{ ID: u.ID, Name: "Thayane", })