(t testing.TB)
| 43 | var logOnce sync.Once |
| 44 | |
| 45 | func mustDialRabbit(t testing.TB) amqpConnection { |
| 46 | t.Helper() |
| 47 | |
| 48 | if !setup.HasDockerTestEnvironment() { |
| 49 | logOnce.Do(func() { |
| 50 | t.Log("using the fake because the RabbitMQ server is not available") |
| 51 | }) |
| 52 | return newFakeConnection() |
| 53 | } |
| 54 | conn, err := amqp.Dial(rabbitURL) |
| 55 | if err != nil { |
| 56 | t.Fatal(err) |
| 57 | } |
| 58 | logOnce.Do(func() { |
| 59 | t.Logf("using the RabbitMQ server at %s", rabbitURL) |
| 60 | }) |
| 61 | return &connection{conn} |
| 62 | } |
| 63 | |
| 64 | func TestConformance(t *testing.T) { |
| 65 | harnessMaker := func(_ context.Context, t *testing.T) (drivertest.Harness, error) { |
no test coverage detected