Skip to content

Commit

Permalink
chore: adjust logging in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
astromechza committed Jun 25, 2024
1 parent fe9025b commit 2b0e9f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,16 @@ func waitForHealthyAmqp(t *testing.T, connStr string) *Conn {
t.Fatal("timed out waiting for healthy amqp", ctx.Err())
return nil
case <-tkr.C:
t.Log("attempting connection")
conn, err := NewConn(connStr, WithConnectionOptionsLogger(simpleLogF(t.Logf)))
if err != nil {
t.Log("failed to connect", err.Error())
} else {
if err := func() error {
t.Log("attempting connection")

pub, err := NewPublisher(conn, WithPublisherOptionsLogger(simpleLogF(t.Logf)))
if err != nil {
return fmt.Errorf("failed to setup publisher: %v", err)
}

t.Log("attempting publish")
return pub.PublishWithContext(ctx, []byte{}, []string{"ping"}, WithPublishOptionsExchange(""))
}(); err != nil {
Expand Down

0 comments on commit 2b0e9f5

Please sign in to comment.