I am checking to see if deadline is overdue then invoke access token method to add the new token to the session, but this method never gets executed. Can you please advise to refresh the token before it expires? or any other solutions? I cant find a solution that works
val deadline = 180.seconds.fromNow
private val submitOrders: ScenarioBuilder =
scenario(“Orders Submission for Round 1”)
.doIf(deadline.isOverdue()) {
exec(AuthRequest.auth_token) }. → this method sets the token in the session
.exec(bidOrder())