Skip to content

Commit

Permalink
chore: adding topic for integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulsametileri committed Aug 31, 2023
1 parent c9ea48a commit c9345b8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func Test_Should_Consume_Message_Successfully(t *testing.T) {

// When
produceMessages(t, conn, segmentio.Message{
Topic: topic,
Key: []byte("1"),
Value: []byte(`foo`),
})
Expand Down Expand Up @@ -129,11 +130,11 @@ func Test_Should_Batch_Consume_Messages_Successfully(t *testing.T) {

// When
produceMessages(t, conn,
segmentio.Message{Key: []byte("1"), Value: []byte(`foo1`)},
segmentio.Message{Key: []byte("2"), Value: []byte(`foo2`)},
segmentio.Message{Key: []byte("3"), Value: []byte(`foo3`)},
segmentio.Message{Key: []byte("4"), Value: []byte(`foo4`)},
segmentio.Message{Key: []byte("5"), Value: []byte(`foo5`)},
segmentio.Message{Topic: topic, Key: []byte("1"), Value: []byte(`foo1`)},
segmentio.Message{Topic: topic, Key: []byte("2"), Value: []byte(`foo2`)},
segmentio.Message{Topic: topic, Key: []byte("3"), Value: []byte(`foo3`)},
segmentio.Message{Topic: topic, Key: []byte("4"), Value: []byte(`foo4`)},
segmentio.Message{Topic: topic, Key: []byte("5"), Value: []byte(`foo5`)},
)

// Then
Expand Down Expand Up @@ -179,7 +180,7 @@ func Test_Should_Integrate_With_Kafka_Cronsumer_Successfully(t *testing.T) {
consumer.Consume()

// When
produceMessages(t, conn, segmentio.Message{Key: []byte("1"), Value: []byte(`foo`)})
produceMessages(t, conn, segmentio.Message{Topic: topic, Key: []byte("1"), Value: []byte(`foo`)})

// Then
var expectedOffset int64 = 1
Expand Down

0 comments on commit c9345b8

Please sign in to comment.