@@ -3020,7 +3020,7 @@ export ROOT_DIR TMPDIR
|
3020 | 3020 | |
3021 | 3021 | source "$ROOT_DIR/scripts/lib/docker-e2e-logs.sh" |
3022 | 3022 | |
3023 | | -output="$(run_logged_print_heartbeat plugins-run 1 bash -c 'printf "captured container log\\\\n"; /bin/sleep 2')" |
| 3023 | +output="$(run_logged_print_heartbeat plugins-run 1 bash -c 'printf "captured container log\\\\n"; /bin/sleep 4')" |
3024 | 3024 | [[ "$output" = *"still running plugins-run ("* ]] |
3025 | 3025 | [[ "$output" = *"log bytes captured"* ]] |
3026 | 3026 | [[ "$output" = *"captured container log"* ]] |
@@ -3195,28 +3195,18 @@ output="$(run_logged_print_heartbeat plugins-run 30 bash -c 'printf "quick conta
|
3195 | 3195 | }); |
3196 | 3196 | |
3197 | 3197 | it("normalizes zero-padded Docker E2E log heartbeat intervals", () => { |
3198 | | -const workDir = mkdtempSync(join(tmpdir(), "openclaw-docker-e2e-log-zero-heartbeat-")); |
3199 | | - |
3200 | | -try { |
3201 | | -const rootDir = process.cwd(); |
3202 | | -const script = ` |
| 3198 | +const rootDir = process.cwd(); |
| 3199 | +const script = ` |
3203 | 3200 | set -euo pipefail |
3204 | 3201 | ROOT_DIR=${shellQuote(rootDir)} |
3205 | | -TMPDIR=${shellQuote(workDir)} |
3206 | | -export ROOT_DIR TMPDIR |
| 3202 | +export ROOT_DIR |
3207 | 3203 | |
3208 | 3204 | source "$ROOT_DIR/scripts/lib/docker-e2e-logs.sh" |
3209 | 3205 | |
3210 | | -output="$(run_logged_print_heartbeat plugins-run 08 bash -c 'printf "captured container log\\\\n"; /bin/sleep 9')" |
3211 | | -[[ "$output" = *"still running plugins-run (8s elapsed,"* ]] |
3212 | | -[[ "$output" = *"log bytes captured"* ]] |
3213 | | -[[ "$output" = *"captured container log"* ]] |
| 3206 | +[[ "$(docker_e2e_normalize_positive_int_value 'Docker E2E log heartbeat interval' 08)" = "8" ]] |
3214 | 3207 | `; |
3215 | 3208 | |
3216 | | -execFileSync("bash", ["-lc", script], { encoding: "utf8" }); |
3217 | | -} finally { |
3218 | | -rmSync(workDir, { recursive: true, force: true }); |
3219 | | -} |
| 3209 | +execFileSync("bash", ["-lc", script], { encoding: "utf8" }); |
3220 | 3210 | }); |
3221 | 3211 | |
3222 | 3212 | it("normalizes zero-padded Docker E2E stats heartbeat intervals", () => { |
|