@Override
    protected DataSource createDataSource() {

        if (masterDatasource == null || masterConfig == null) {
            throw new IllegalArgumentException("Extension was not started!");
        }

        TestcontainersDatabaseInformation databaseInformation = instanceProvider.get();

        HikariConfig schemaConfig = new HikariConfig();
        masterConfig.copyStateTo(schemaConfig);

        databaseInformation.getCatalog().ifPresent(schemaConfig::setCatalog);
        databaseInformation.getSchema().ifPresent(schemaConfig::setSchema);
        schemaConfig.setPoolName(format("jdbi-test-pool (%s)", databaseInformation));

        try (HikariDataSource ds = schemaDatasource) {
            this.schemaDatasource = new HikariDataSource(schemaConfig);
        }

        return schemaDatasource;
    }
Sets the maximum wait time for shutting down the extension.
@see TestcontainersDatabaseInformation#setShutdownWaitTimeInSeconds(int)

@since 3.45.0
testcontainers/src/main/java/org/jdbi/v3/testing/junit5/tc/JdbiTestcontainersExtension.java