Skip to content

Commit 2b0e9f5

Browse files
committed
chore: adjust logging in setup
1 parent fe9025b commit 2b0e9f5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

integration_test.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,16 @@ func waitForHealthyAmqp(t *testing.T, connStr string) *Conn {
4646
t.Fatal("timed out waiting for healthy amqp", ctx.Err())
4747
return nil
4848
case <-tkr.C:
49+
t.Log("attempting connection")
4950
conn, err := NewConn(connStr, WithConnectionOptionsLogger(simpleLogF(t.Logf)))
5051
if err != nil {
5152
t.Log("failed to connect", err.Error())
5253
} else {
5354
if err := func() error {
54-
t.Log("attempting connection")
55-
5655
pub, err := NewPublisher(conn, WithPublisherOptionsLogger(simpleLogF(t.Logf)))
5756
if err != nil {
5857
return fmt.Errorf("failed to setup publisher: %v", err)
5958
}
60-
6159
t.Log("attempting publish")
6260
return pub.PublishWithContext(ctx, []byte{}, []string{"ping"}, WithPublishOptionsExchange(""))
6361
}(); err != nil {

0 commit comments

Comments
 (0)