Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lezhnev74 committed Sep 3, 2024
1 parent c9743f5 commit c104784
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions db/results_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ func TestResultsRead(t *testing.T) {
return
}, func() error { return nil })

r, err := dbContainer.QueryDB.CheckinQuery("sample", &t1, &t2, it)
r, err := dbContainer.QueryDB.CheckinQuery("sample", &t0, &t2, it)
require.NoError(t, err)

require.False(t, r.Finished)
require.Equal(t, 0, r.Messages)
require.Equal(t, &t1, r.Min)
require.Equal(t, &t0, r.Min)
require.Equal(t, &t2, r.Max)

dbContainer.QueryDB.Flush()
Expand All @@ -83,6 +83,7 @@ func TestResultsRead(t *testing.T) {
ticks <- true // allow one message to pass in
time.Sleep(200 * time.Millisecond)
dbContainer.QueryDB.Flush() // see the message
time.Sleep(200 * time.Millisecond)

page, err = dbContainer.QueryDB.Page(r.Id, nil, nil, 0, 100)
require.NoError(t, err)
Expand Down

0 comments on commit c104784

Please sign in to comment.