Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl committed Sep 12, 2024
1 parent a2842a0 commit 50b21ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions persistence/sql/batch/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ func Test_buildInsertQueryValues(t *testing.T) {
values, err := buildInsertQueryValues(dbal.DriverCockroachDB, mapper, []string{"created_at", "updated_at", "id", "string", "int", "null_time_ptr", "traits"}, []*testModel{model}, nowFunc)
require.NoError(t, err)

assert.NotNil(t, model.CreatedAt)
assert.NotZero(t, model.CreatedAt)
assert.Equal(t, model.CreatedAt, values[0])

assert.NotNil(t, model.UpdatedAt)
assert.NotZero(t, model.UpdatedAt)
assert.Equal(t, model.UpdatedAt, values[1])

assert.NotZero(t, model.ID)
Expand All @@ -140,10 +140,10 @@ func Test_buildInsertQueryValues(t *testing.T) {
values, err := buildInsertQueryValues("other", mapper, []string{"created_at", "updated_at", "id", "string", "int", "null_time_ptr", "traits"}, []*testModel{model}, nowFunc)
require.NoError(t, err)

assert.NotNil(t, model.CreatedAt)
assert.NotZero(t, model.CreatedAt)
assert.Equal(t, model.CreatedAt, values[0])

assert.NotNil(t, model.UpdatedAt)
assert.NotZero(t, model.UpdatedAt)
assert.Equal(t, model.UpdatedAt, values[1])

assert.NotZero(t, model.ID)
Expand Down

0 comments on commit 50b21ed

Please sign in to comment.