Skip to content

Commit

Permalink
[IMPROVED] Fixed flaky tests (#1380)
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
  • Loading branch information
piotrpio committed Aug 29, 2023
1 parent 6339570 commit 3bf54c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jetstream/test/kv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ func TestListKeyValueStores(t *testing.T) {

nc, js := jsClient(t, s)
defer nc.Close()
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()

// create stream without the chunk subject, but with KV_ prefix
Expand Down
2 changes: 1 addition & 1 deletion test/js_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ func TestPullSubscribeFetchBatch(t *testing.T) {
t.Fatalf("Unexpected error: %s", err)
}
go func() {
time.Sleep(10 * time.Millisecond)
time.Sleep(200 * time.Millisecond)
cancel()
}()
msgs := make([]*nats.Msg, 0)
Expand Down

0 comments on commit 3bf54c2

Please sign in to comment.