Skip to content

Commit

Permalink
Increase the timeout of TestQuery and TestFetch
Browse files Browse the repository at this point in the history
  • Loading branch information
M. Mert Yildiran committed Mar 2, 2022
1 parent d291529 commit 3c36a84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/go/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ func TestQuery(t *testing.T) {

c.Query(`chevy`, data, meta)

if waitTimeout(&wg, 5*time.Second) {
if waitTimeout(&wg, 10*time.Second) {
t.Fatal("Timed out waiting for wait group")
}
}

func TestFetch(t *testing.T) {
data, meta, err := Fetch(HOST, PORT, 100, -1, `chevy`, 20, 5*time.Second)
data, meta, err := Fetch(HOST, PORT, 100, -1, `chevy`, 20, 10*time.Second)
assert.Nil(t, err)

assert.Equal(t, `{"current":20,"total":15000,"numberOfWritten":19,"leftOff":80,"truncatedTimestamp":0}`, string(meta))
Expand Down

0 comments on commit 3c36a84

Please sign in to comment.