Skip to content

Commit 3604d6c

Browse files
committed
fix(tests): scale daemon runtime sanitizer timeout
Signed-off-by: Brian McNaboe <bmcnaboe@gmail.com>
1 parent 46ae198 commit 3604d6c

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎tests/test_daemon_runtime.c‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "foundation/compat_thread.h"
2222
#include "foundation/log.h"
2323
#include "foundation/platform.h"
24+
#include "foundation/sanitized.h"
2425
#include "pipeline/pipeline.h"
2526
#include "store/store.h"
2627

@@ -3550,10 +3551,18 @@ TEST(daemon_runtime_disconnect_cancels_blocked_non_index_child_and_preserves_oth
35503551
SKIP_PLATFORM("requires a queryable copied process image");
35513552
#else
35523553
enum {
3554+
#if CBM_SANITIZED
3555+
/* This readiness wait is a liveness backstop, not the behavior under
3556+
* test. The copied instrumented runner can take several seconds to
3557+
* reach main on macOS, especially while the parallel gate is busy. */
3558+
CHILD_READY_BOUND_MS = 60000,
3559+
REQUEST_TIMEOUT_MS = 90000,
3560+
#else
35533561
CHILD_READY_BOUND_MS = 5000,
3562+
REQUEST_TIMEOUT_MS = 15000,
3563+
#endif
35543564
CHILD_CANCEL_BOUND_MS = 3000,
35553565
CHILD_CLEANUP_BOUND_MS = 5000,
3556-
REQUEST_TIMEOUT_MS = 15000,
35573566
};
35583567
const char *old_cache = getenv("CBM_CACHE_DIR");
35593568
const char *old_path = getenv("PATH");

0 commit comments

Comments
 (0)