Skip to content

Commit

Permalink
Increase tolerance of 'test_cacert_load_and_verify_duration-t' for AS…
Browse files Browse the repository at this point in the history
…AN builds
  • Loading branch information
JavierJF committed May 16, 2024
1 parent d7f2c44 commit f867451
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/tap/tests/test_cacert_load_and_verify_duration-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ int main() {

plan(1);

int32_t WASAN = get_env_int("WITHASAN", 0);
// Double the value of previously failed ASAN run: '89415ms'
int32_t EXP_TIME = WASAN == 0 ? 20000 : 180000;

MYSQL* proxysql_admin = mysql_init(NULL);

// Initialize connection
Expand Down Expand Up @@ -57,7 +61,7 @@ int main() {
if (start_pos != std::string::npos &&
end_pos != std::string::npos) {
uint64_t time = std::stoull(msg.substr(start_pos + 5, end_pos - (start_pos + 5)));
ok(time < 20000, "Total duration is '%lu ms' should be less than 20 Seconds", time);
ok(time < EXP_TIME, "Total duration is '%lu ms' should be less than %d Seconds", time, EXP_TIME/1000);
}
}
mysql_close(proxysql_admin);
Expand Down

0 comments on commit f867451

Please sign in to comment.