Skip to content

Commit

Permalink
backend: increase produce timeouts in deserializer integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Aug 1, 2023
1 parent 6abe0a4 commit 0cb8fa1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions backend/pkg/kafka/deserializer_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (s *KafkaIntegrationTestSuite) TestDeserializeRecord() {
Timestamp: recordTimeStamp,
}

produceCtx, produceCancel := context.WithTimeout(context.Background(), 1*time.Second)
produceCtx, produceCancel := context.WithTimeout(context.Background(), 3*time.Second)
defer produceCancel()

results := s.kafkaClient.ProduceSync(produceCtx, r)
Expand Down Expand Up @@ -257,7 +257,7 @@ func (s *KafkaIntegrationTestSuite) TestDeserializeRecord() {
Timestamp: orderCreatedAt,
}

produceCtx, produceCancel := context.WithTimeout(context.Background(), 1*time.Second)
produceCtx, produceCancel := context.WithTimeout(context.Background(), 3*time.Second)
defer produceCancel()

results := s.kafkaClient.ProduceSync(produceCtx, r)
Expand Down Expand Up @@ -411,7 +411,7 @@ func (s *KafkaIntegrationTestSuite) TestDeserializeRecord() {
Timestamp: orderCreatedAt,
}

produceCtx, produceCancel := context.WithTimeout(context.Background(), 1*time.Second)
produceCtx, produceCancel := context.WithTimeout(context.Background(), 3*time.Second)
defer produceCancel()

results := s.kafkaClient.ProduceSync(produceCtx, r)
Expand Down Expand Up @@ -578,7 +578,7 @@ func (s *KafkaIntegrationTestSuite) TestDeserializeRecord() {
Timestamp: orderCreatedAt,
}

produceCtx, produceCancel := context.WithTimeout(context.Background(), 1*time.Second)
produceCtx, produceCancel := context.WithTimeout(context.Background(), 3*time.Second)
defer produceCancel()

results := s.kafkaClient.ProduceSync(produceCtx, r)
Expand Down Expand Up @@ -708,7 +708,7 @@ func (s *KafkaIntegrationTestSuite) TestDeserializeRecord() {
Topic: testTopicName,
}

produceCtx, produceCancel := context.WithTimeout(context.Background(), 1*time.Second)
produceCtx, produceCancel := context.WithTimeout(context.Background(), 3*time.Second)
defer produceCancel()

results := s.kafkaClient.ProduceSync(produceCtx, r)
Expand Down Expand Up @@ -852,7 +852,7 @@ func (s *KafkaIntegrationTestSuite) TestDeserializeRecord() {
Topic: testTopicName,
}

produceCtx, produceCancel := context.WithTimeout(context.Background(), 1*time.Second)
produceCtx, produceCancel := context.WithTimeout(context.Background(), 3*time.Second)
defer produceCancel()

results := s.kafkaClient.ProduceSync(produceCtx, r)
Expand Down Expand Up @@ -1074,7 +1074,7 @@ func (s *KafkaIntegrationTestSuite) TestDeserializeRecord() {
Timestamp: orderCreatedAt,
}

produceCtx, produceCancel := context.WithTimeout(context.Background(), 1*time.Second)
produceCtx, produceCancel := context.WithTimeout(context.Background(), 3*time.Second)
defer produceCancel()

results := s.kafkaClient.ProduceSync(produceCtx, r)
Expand Down

0 comments on commit 0cb8fa1

Please sign in to comment.