Skip to content

Commit

Permalink
fix TestRowBuilderAndNilTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Feb 17, 2021
1 parent 1b26b83 commit 31d1040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pgxmock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ func TestRowBuilderAndNilTypes(t *testing.T) {
defer mock.Close(context.Background())

rs := NewRows([]string{"id", "active", "created", "status"}).
AddRow(1, true, time.Now(), 5).
AddRow(2, false, nil, nil)
AddRow(1, true, NullTime{time.Now(), true}, NullInt{5, true}).
AddRow(2, false, NullTime{Valid: false}, NullInt{Valid: false})

mock.ExpectQuery("SELECT (.+) FROM sales").WillReturnRows(rs)

Expand Down

0 comments on commit 31d1040

Please sign in to comment.