Skip to content

Commit

Permalink
Try sleeping to ensure sessions are released (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyprime committed Feb 11, 2022
1 parent cd86d87 commit e42db8d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4145,6 +4145,8 @@ class EndToEndTests(readOpts: Map[String, String], writeOpts: Map[String, String
val dfRead: DataFrame = spark.read.format("com.vertica.spark.datasource.VerticaSource").options(readOpts + ("table" -> tableName)).load()
assert(dfRead.count() == 3)
}
// Ensure operations have time to complete and cleanup
Thread.sleep(2000)

val stmt = conn.createStatement()
val query = "SELECT COUNT(*) FROM v_monitor.sessions;"
Expand Down

0 comments on commit e42db8d

Please sign in to comment.