fix: shorten monitor success cooldown
This commit is contained in:
@@ -252,7 +252,9 @@ func TestLeaseNextQueuedMonitorTaskSQLSerializesPerClientPlatform(t *testing.T)
|
||||
"COUNT(DISTINCT active_platform.platform_id)",
|
||||
"active_platform.target_client_id = $3",
|
||||
"< $8::integer",
|
||||
"recent.status IN ('succeeded', 'failed', 'unknown', 'aborted')",
|
||||
"recent.status = 'succeeded'",
|
||||
"recent.updated_at >= now() - interval '2 seconds'",
|
||||
"recent.status IN ('failed', 'unknown', 'aborted')",
|
||||
"recent.updated_at >= now() - interval '30 seconds'",
|
||||
} {
|
||||
if !strings.Contains(normalized, fragment) {
|
||||
@@ -274,7 +276,9 @@ func TestLeaseQueuedDesktopTaskByIDSQLSerializesMonitorPerClientPlatform(t *test
|
||||
"COUNT(DISTINCT active_platform.platform_id)",
|
||||
"active_platform.target_client_id = $4",
|
||||
"< $10::integer",
|
||||
"recent.status IN ('succeeded', 'failed', 'unknown', 'aborted')",
|
||||
"recent.status = 'succeeded'",
|
||||
"recent.updated_at >= now() - interval '2 seconds'",
|
||||
"recent.status IN ('failed', 'unknown', 'aborted')",
|
||||
"recent.updated_at >= now() - interval '30 seconds'",
|
||||
} {
|
||||
if !strings.Contains(normalized, fragment) {
|
||||
|
||||
Reference in New Issue
Block a user