Skip to content

Commit b546885

Browse files
committed
timeout fix
1 parent 1c5525d commit b546885

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

external/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/DockerJDBCIntegrationSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ abstract class DockerJDBCIntegrationSuite extends SharedSparkSession with Eventu
155155
docker.startContainer(containerId)
156156
jdbcUrl = db.getJdbcUrl(dockerIp, externalPort)
157157
var conn: Connection = null
158-
eventually(timeout(2.minutes), interval(1.second)) {
158+
eventually(timeout(7.minutes), interval(1.second)) {
159159
conn = getConnection()
160160
}
161161
// Run any setup queries:

external/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/OracleIntegrationSuite.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ import org.apache.spark.tags.DockerTest
3737
* 2. export ORACLE_DOCKER_IMAGE_NAME=$ORACLE_DOCKER_IMAGE_NAME
3838
* Pull oracle $ORACLE_DOCKER_IMAGE_NAME image - docker pull $ORACLE_DOCKER_IMAGE_NAME
3939
* 3. Start docker - sudo service docker start
40-
* 4. The timeout and interval parameter to be increased to a high value for oracle test in
41-
* DockerJDBCIntegrationSuite.scala (Locally tested with 20 min timeout and 1 sec interval
42-
* then executed successfully).
43-
* 5. Run spark test - ./build/sbt -Pdocker-integration-tests
40+
* 4. Run spark test - ./build/sbt -Pdocker-integration-tests
4441
* "test-only org.apache.spark.sql.jdbc.OracleIntegrationSuite"
4542
*
4643
* An actual sequence of commands to run the test is as follows

0 commit comments

Comments
 (0)