Infinite Loop on scenario

Hi,

I don’t know why the bottom scenario never ends. In gatling.conf is setted 1 minute of timeout. But the scenario still wating… Maybe you can help me. Plz.

TEST_DURATION = 10 secs.
TOTAL_USERS = 800

Thanks.

This is my scenario:

`
package simulation

import scala.concurrent.duration.DurationInt
import com.atlassian.gatling.jwt.Predef.httpWithJwt
import io.gatling.core.Predef._
import io.gatling.core.Predef._
import io.gatling.core.Predef.assertions.global
import io.gatling.core.Predef.bootstrap.{ exec, feed }
import io.gatling.http.Predef._
import simulation.Config._
import simulation.Feeders._
import com.atlassian.gatling.jwt.JwtSigner
import io.gatling.core.session.Session
import io.gatling.core.session.Expression

class UpdateIssueWebhook extends Simulation {

val httpProtocol = http.baseURL(CONNECT_APP)

val paramsMutableMapHack = collection.mutable.MapString, Array[String]

val updateIssueWebhookScenario = scenario(s"Update Issue Webhook Scenario")
.during(TEST_DURATION seconds) {
exec(
feed(tenantKeyFeeder.random)
.feed(userKeyFeeder.random)
.feed(issueKeyFeeder.random)
.exec(http(“update-issue-webhook-request”)
.post("/jira-issue_updated")
.body(ELFileBody(“webhook-template.json”)).asJSON
.queryParam(“jwt”,session => {val paramsMutableMapHack = collection.mutable.MapString, Array[String]; JwtSigner.generateSignature(“POST”, “/jira-issue_updated”, paramsMutableMapHack.toMap, session(“tenant”).as[String], session(“user”).as[String], “mock-tenant-shared-secret”);})
.check(status.is(200)))
)
}

setUp(updateIssueWebhookScenario.inject(ramp(TOTAL_USERS users) over (TEST_DURATION seconds)))
.protocols(httpProtocol)
.assertions(global.successfulRequests.percent.is(100))

}
`

Your test should run for 20 seconds, plus however long it takes for the last initiated request to finish, which if you are flooding the server, may be a long time. But it’s not obvious why it would run longer than 2 minutes.