From 657b4c5e2cd5b19e3dd049b8fbfd447b0ad169cb Mon Sep 17 00:00:00 2001 From: Krypto Kajun Date: Sat, 8 Nov 2025 13:44:31 -0600 Subject: [PATCH] fix: increase smoke test timeout to 30s and handle success exit codes --- harness/local-ci-pipeline.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/harness/local-ci-pipeline.sh b/harness/local-ci-pipeline.sh index 6eb6880..c231d1e 100755 --- a/harness/local-ci-pipeline.sh +++ b/harness/local-ci-pipeline.sh @@ -155,12 +155,16 @@ run_build() { run_smoke_test() { export GO_ENV="development" export MEV_BOT_ENCRYPTION_KEY="test_key_32_chars_minimum_length_required" - run_step "smoke-test" timeout 10s ./bin/mev-bot start || { - if [[ $? -eq 124 ]]; then - log "✅ Smoke test passed (timeout expected)" + run_step "smoke-test" timeout 30s ./bin/mev-bot start || { + local exit_code=$? + if [[ $exit_code -eq 124 ]]; then + log "✅ Smoke test passed (timeout expected after 30s)" + return 0 + elif [[ $exit_code -eq 0 ]]; then + log "✅ Smoke test passed" return 0 else - log "❌ Smoke test failed" + log "❌ Smoke test failed with exit code $exit_code" return 1 fi }