Skip to content

Commit

Permalink
Log pinger errors
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Aug 7, 2024
1 parent 35e39e9 commit b3a7418
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions treatment-service/integration-test/fetch_treatment_it_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,15 +384,17 @@ func (suite *TreatmentServiceTestSuite) SetupSuite() {

pinger, err := probing.NewPinger(fmt.Sprintf("127.0.0.1:%d", port.Int()))
if err != nil {
panic(err)
}
pinger.Count = 3
err = pinger.Run() // Blocks until finished.
if err != nil {
panic(err)
fmt.Println(err)
} else {
pinger.Count = 3
err = pinger.Run() // Blocks until finished.
if err != nil {
fmt.Println(err)
} else {
stats := pinger.Statistics()
fmt.Println(stats) // get send/receive/duplicate/rtt stats
}
}
stats := pinger.Statistics()
fmt.Println(stats) // get send/receive/duplicate/rtt stats

// Docker compose file copied from official confluentinc repository.
// See: https://github.com/confluentinc/cp-all-in-one/blob/7.0.1-post/cp-all-in-one-kraft/docker-compose.yml
Expand Down

0 comments on commit b3a7418

Please sign in to comment.