Skip to content

Commit

Permalink
Ping actual localhost ip
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Aug 7, 2024
1 parent abba2eb commit 5e0ba9e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion treatment-service/integration-test/fetch_treatment_it_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,19 @@ func (suite *TreatmentServiceTestSuite) SetupSuite() {
panic(err)
}
fmt.Println(brokers)
pinger, err := probing.NewPinger(brokers[0])

networks, err := kafkaContainer.Networks(ctx)
if err != nil {
panic(err)
}
fmt.Println(networks)

port, err := kafkaContainer.MappedPort(ctx, "9093/tcp")
if err != nil {
panic(err)
}

pinger, err := probing.NewPinger(fmt.Sprintf("127.0.0.1:%s", port))
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 5e0ba9e

Please sign in to comment.