GetTestMSSQLContainer is a helper function for tests that creates a MSSQL container and handles the error by failing the test if container creation fails
(ctx context.Context, t testing.TB)
| 460 | // GetTestMSSQLContainer is a helper function for tests that creates a MSSQL container |
| 461 | // and handles the error by failing the test if container creation fails |
| 462 | func GetTestMSSQLContainer(ctx context.Context, t testing.TB) *Container { |
| 463 | t.Helper() |
| 464 | container, err := GetMSSQLContainer(ctx) |
| 465 | if err != nil { |
| 466 | t.Fatalf("failed to create MSSQL container: %v", err) |
| 467 | } |
| 468 | return container |
| 469 | } |
| 470 | |
| 471 | // GetTiDBContainer creates a TiDB container for testing |
| 472 | func GetTiDBContainer(ctx context.Context) (retC *Container, retErr error) { |