Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillem committed Jun 12, 2024
1 parent 5683f8e commit 8619a97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions destination/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,13 @@ func TestConfig_ParseTopic_DoesErrorOnTopicNotFound(t *testing.T) {
is.Equal(topic, "")

rec := sdk.Record{
Key: sdk.RawData("testkey"),
Metadata: map[string]string{
"topic": "testtopic",
},
}
topic, err = getTopic(rec)
is.True(err != nil) // expected error on topic not found
is.True(strings.Contains(err.Error(), "topic not found on record")) // expected topic not found error

is.Equal(topic, "")
Expand Down

0 comments on commit 8619a97

Please sign in to comment.