From 4966062c67ec66c3e840525ddfe452ca18b8a941 Mon Sep 17 00:00:00 2001 From: LesCyber <andi4cing@gmail.com> Date: Tue, 4 Mar 2025 16:45:24 +0800 Subject: [PATCH] fix: typo Signed-off-by: LesCyber <andi4cing@gmail.com> --- tests/e2e/runner/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/runner/main.go b/tests/e2e/runner/main.go index d2c100b1..b2ed1aa9 100644 --- a/tests/e2e/runner/main.go +++ b/tests/e2e/runner/main.go @@ -42,7 +42,7 @@ func pingZgChain(rpcUrl string) error { return err } defer res.Body.Close() - if res.StatusCode >= 400 { + if res.StatusCode >= http.StatusBadRequest { return fmt.Errorf("ping to status failed: %d", res.StatusCode) } log.Println("successfully started ZgChain!") @@ -57,7 +57,7 @@ func pingEvm(evmRpcUrl string) error { } defer res.Body.Close() // when running, it should respond 405 to a GET request - if res.StatusCode != 405 { + if res.StatusCode != http.StatusMethodNotAllowed { return fmt.Errorf("ping to evm failed: %d", res.StatusCode) } log.Println("successfully pinged EVM!")