Skip to content

Commit

Permalink
* Add longer wait periods between each test step to avoid race condit…
Browse files Browse the repository at this point in the history
…ion on GHA.
  • Loading branch information
Miles-Garnsey committed Jul 18, 2022
1 parent fa074a4 commit 0452b16
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class DataTester(cassandraOrchestrator: CassandraOrchestrator, pulsarOrchestrato
res.left.map(m => logger.error(s"Failed to create Cassandra schema: ${m.getMessage}"))
return res.left.toOption
}
logger.info("Waiting 20 seconds....")
Thread.sleep(2000)
logger.info("Waiting 2 minutes....")
Thread.sleep(12000)

// Configure Pulsar connector.
res = pulsarOrchestrator.connectorConfigure(
Expand All @@ -52,17 +52,17 @@ class DataTester(cassandraOrchestrator: CassandraOrchestrator, pulsarOrchestrato
res.left.map(m => logger.error(s"Failed to configure Pulsar connector: ${m.getMessage}"))
return res.left.toOption
}
logger.info("Waiting 20 seconds....")
Thread.sleep(2000)
logger.info("Waiting 2 minutes....")
Thread.sleep(12000)

// Add data to Cassandra
res = cassandraOrchestrator.addData(cassDCName, cqlStatements)
if (res.isLeft) {
res.left.map(m => logger.error(s"Failed to add data to Cassandra: ${m.getMessage}"))
return res.left.toOption
}
logger.info("Waiting 20 seconds....")
Thread.sleep(2000)
logger.info("Waiting 2 minutes....")
Thread.sleep(12000)

// Fetch data from Pulsar
val maybeData = pulsarOrchestrator.fetchData()
Expand Down

0 comments on commit 0452b16

Please sign in to comment.