tryMax doesn't work

Hi,

I’m using tryMax(3) in my script to make testing more stable. But it always re-run the chain “exec(httpReq)” no matter the request is fail or successful. Could you please help me?

private val insertFeeder = csv(“test_data.csv”).queue
private val csvHeader = GeneralUtil.readFirstLine("“test_data.csv”")

private val httpConf = http
.baseURL(“http://serviceURL”)
.disableFollowRedirect
.disableWarmUp
.shareConnections

private var httpReq = http(“insert_request”)
.post("/insert")

private val scn = scenario(“test_scn”)
.feed(insertFeeder, 100)
.exec(httpReq)

.tryMax(3){
exec(httpReq)
}

}