Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kafka: Relax kafka_test timeout #20

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions datasync/chaindatafetcher/kafka/kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (s *KafkaSuite) subscribeData(topic, groupId string, numTests int, handler
}()

// wait for all data to be consumed
timeout := time.NewTimer(5 * time.Second)
timeout := time.NewTimer(10 * time.Second)
for i := 0; i < numTests; i++ {
select {
case <-numCheckCh:
Expand Down Expand Up @@ -473,7 +473,7 @@ func (s *KafkaSuite) TestKafka_PubSubWithSegements_BufferOverflow() {
}()

// checkout the returned error is buffer overflow error
timeout := time.NewTimer(5 * time.Second)
timeout := time.NewTimer(10 * time.Second)
select {
case <-timeout.C:
s.Fail("timeout")
Expand Down Expand Up @@ -508,7 +508,7 @@ func (s *KafkaSuite) TestKafka_PubSubWithSegments_ErrCallBack() {
}()

// checkout the returned error is callback error
timeout := time.NewTimer(5 * time.Second)
timeout := time.NewTimer(10 * time.Second)
select {
case <-timeout.C:
s.Fail("timeout")
Expand Down Expand Up @@ -550,7 +550,7 @@ func (s *KafkaSuite) TestKafka_PubSubWithSegments_MessageTimeout() {
}()

// checkout the returned error is callback error
timeout := time.NewTimer(5 * time.Second)
timeout := time.NewTimer(10 * time.Second)
select {
case <-timeout.C:
s.Fail("timeout")
Expand Down
Loading