@@ -17,14 +17,15 @@ package com.clickhouse.spark.base
1717import com .clickhouse .spark .Utils
1818import com .clickhouse .data .ClickHouseVersion
1919import com .dimafeng .testcontainers .{ForAllTestContainer , JdbcDatabaseContainer , SingleContainer }
20- import org .scalatest .{ BeforeAndAfterAll }
20+ import org .scalatest .BeforeAndAfterAll
2121import org .scalatest .funsuite .AnyFunSuite
2222import org .testcontainers .containers .ClickHouseContainer
2323import org .testcontainers .utility .{DockerImageName , MountableFile }
2424import java .nio .file .{Path , Paths }
2525import scala .collection .JavaConverters ._
2626
27- trait ClickHouseSingleMixIn extends AnyFunSuite with BeforeAndAfterAll with ForAllTestContainer with ClickHouseProvider {
27+ trait ClickHouseSingleMixIn extends AnyFunSuite with BeforeAndAfterAll with ForAllTestContainer
28+ with ClickHouseProvider {
2829 // format: off
2930 private val CLICKHOUSE_IMAGE : String = Utils .load(" CLICKHOUSE_IMAGE" , " clickhouse/clickhouse-server:23.8" )
3031 private val CLICKHOUSE_USER : String = Utils .load(" CLICKHOUSE_USER" , " default" )
@@ -87,9 +88,11 @@ trait ClickHouseSingleMixIn extends AnyFunSuite with BeforeAndAfterAll with ForA
8788 override def beforeAll (): Unit = {
8889 val startTime = System .currentTimeMillis()
8990 println(s " [ClickHouseSingleMixIn] Starting ClickHouse container: $CLICKHOUSE_IMAGE" )
90- super .beforeAll() // This starts the container and makes mappedPort available
91+ super .beforeAll() // This starts the container and makes mappedPort available
9192 val duration = System .currentTimeMillis() - startTime
92- println(s " [ClickHouseSingleMixIn] ClickHouse container started in ${duration}ms at ${container.host}: ${container.mappedPort(CLICKHOUSE_HTTP_PORT )}" )
93+ println(
94+ s " [ClickHouseSingleMixIn] ClickHouse container started in ${duration}ms at ${container.host}: ${container.mappedPort(CLICKHOUSE_HTTP_PORT )}"
95+ )
9396 }
9497
9598 override def afterAll (): Unit = {
0 commit comments