Skip to content

Commit b0691e0

Browse files
authored
Merge pull request DeusData#1742 from bmcnaboe/codex/fix-daemon-runtime-sanitizer-timeout-only
fix(tests): scale daemon runtime sanitizer timeout
2 parents 181c03d + dfae618 commit b0691e0

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

@@ -3676,10 +3677,18 @@ TEST(daemon_runtime_disconnect_cancels_blocked_non_index_child_and_preserves_oth
36763677
SKIP_PLATFORM("requires a queryable copied process image");
36773678
#else
36783679
enum {
3680+
#if CBM_SANITIZED
3681+
/* This readiness wait is a liveness backstop, not the behavior under
3682+
* test. The copied instrumented runner can take several seconds to
3683+
* reach main on macOS, especially while the parallel gate is busy. */
3684+
CHILD_READY_BOUND_MS = 60000,
3685+
REQUEST_TIMEOUT_MS = 90000,
3686+
#else
36793687
CHILD_READY_BOUND_MS = 5000,
3688+
REQUEST_TIMEOUT_MS = 15000,
3689+
#endif
36803690
CHILD_CANCEL_BOUND_MS = 3000,
36813691
CHILD_CLEANUP_BOUND_MS = 5000,
3682-
REQUEST_TIMEOUT_MS = 15000,
36833692
};
36843693
const char *old_cache = getenv("CBM_CACHE_DIR");
36853694
const char *old_path = getenv("PATH");

0 commit comments

Comments
 (0)