Skip to content

Commit

Permalink
add more time before checking disconnects
Browse files Browse the repository at this point in the history
  • Loading branch information
sakoush committed Nov 1, 2024
1 parent 3235603 commit ddae74f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scheduler/pkg/agent/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ func TestSubscribe(t *testing.T) {
}(idx, s)
}

time.Sleep(500 * time.Millisecond)
time.Sleep(1500 * time.Millisecond)

g.Expect(len(server.agents)).To(Equal(test.expectedAgentsCountAfterClose))

Expand Down
4 changes: 2 additions & 2 deletions scheduler/pkg/kafka/dataflow/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ func TestPipelineSubscribe(t *testing.T) {
}(a.id)
}

time.Sleep(500 * time.Millisecond)
time.Sleep(700 * time.Millisecond)

g.Expect(len(s.streams)).To(Equal(test.expectedAgentsCount))

Expand All @@ -749,7 +749,7 @@ func TestPipelineSubscribe(t *testing.T) {
}(idx, s)
}

time.Sleep(500 * time.Millisecond)
time.Sleep(1500 * time.Millisecond)

g.Expect(len(s.streams)).To(Equal(test.expectedAgentsCountAfterClose))

Expand Down

0 comments on commit ddae74f

Please sign in to comment.