Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Mar 29, 2024
1 parent cb5175f commit 634c0df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/writer/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestWriter_Write(t *testing.T) {
// Destination error
destination := &mockDestination{emitError: true}
writer := New(destination)
iterator := lib.NewBatchIterator([][]lib.RawMessage{{{TopicSuffix: "a"}}})
iterator := lib.NewSingleBatchIterator([]lib.RawMessage{{TopicSuffix: "a"}})
_, err := writer.Write(context.Background(), iterator)
assert.ErrorContains(t, err, "failed to write messages: test write-raw-messages error")
assert.Empty(t, destination.messages)
Expand Down

0 comments on commit 634c0df

Please sign in to comment.