MCPcopy Create free account
hub / github.com/bytebase/bytebase / GetTestOracleContainer

Function GetTestOracleContainer

backend/common/testcontainer/testcontainer.go:270–277  ·  view source on GitHub ↗

GetTestOracleContainer is a helper function for tests that creates an Oracle container and handles the error by failing the test if container creation fails

(ctx context.Context, t testing.TB)

Source from the content-addressed store, hash-verified

268// GetTestOracleContainer is a helper function for tests that creates an Oracle container
269// and handles the error by failing the test if container creation fails
270func GetTestOracleContainer(ctx context.Context, t testing.TB) *Container {
271 t.Helper()
272 container, err := GetOracleContainer(ctx)
273 if err != nil {
274 t.Fatalf("failed to create Oracle container: %v", err)
275 }
276 return container
277}
278
279// GetStarRocksContainer creates a StarRocks (allin1) container for testing. The allin1
280// image bundles the FE and BE; information_schema is served by the BE, so this waits until

Calls 2

GetOracleContainerFunction · 0.85
FatalfMethod · 0.80