Skip to content

Commit

Permalink
set static container name for testing so if containers are not stoppe…
Browse files Browse the repository at this point in the history
…d correctly, we dont get ports clashing
  • Loading branch information
Alasdair Ellis committed Aug 10, 2021
1 parent b1fa58f commit e82bef5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/kaf/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ func TestMain(m *testing.M) {
}

func testMain(m *testing.M) (code int) {
p := kafka.Preset(kafka.WithTopics("kaf-testing", "gnomock-kafka"))
c, err := gnomock.Start(p)
c, err := gnomock.Start(
kafka.Preset(kafka.WithTopics("kaf-testing", "gnomock-kafka")),
gnomock.WithContainerName("kaf-kafka"),
)
if err != nil {
return 1
}
Expand Down

0 comments on commit e82bef5

Please sign in to comment.