Skip to content

Commit

Permalink
reduce timeout for timeout for context deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
rajesh-1983 committed May 23, 2024
1 parent af57938 commit 3097b91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unittest/querybindblocker_timeout/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func cfg() (map[string]string, map[string]string, testutil.WorkerType) {
appcfg["log_file"] = "hera.log"
appcfg["rac_sql_interval"] = "0"
appcfg["enable_query_bind_blocker"] = "true"
appcfg["management_queries_timeout_us"] = "200"
appcfg["management_queries_timeout_us"] = "100"

opscfg := make(map[string]string)
opscfg["opscfg.default.server.max_connections"] = "3"
Expand Down Expand Up @@ -54,7 +54,7 @@ func TestQueryBindBlockerWithTimeout(t *testing.T) {
}
db.SetMaxIdleConns(0)
defer db.Close()
time.Sleep(3 * time.Second)
time.Sleep(5 * time.Second)
out := testutil.RegexCountFile("loading query bind blocker: context deadline exceeded", "hera.log")
if out < 1 {
err = nil
Expand Down

0 comments on commit 3097b91

Please sign in to comment.