From f4dfc9b272d41c392c37509228ffcc5546f11a96 Mon Sep 17 00:00:00 2001 From: Jun Ouyang Date: Wed, 18 Dec 2024 20:14:17 +0800 Subject: [PATCH] fix: fix test --- t/013-upstream.t | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/t/013-upstream.t b/t/013-upstream.t index 458c527c..270d00f3 100644 --- a/t/013-upstream.t +++ b/t/013-upstream.t @@ -10,7 +10,7 @@ log_level('info'); repeat_each(2); #repeat_each(1); -plan tests => repeat_each() * (blocks() * 2) + 8; +plan tests => repeat_each() * (blocks() * 2); #no_diff(); #no_long_string(); @@ -159,8 +159,8 @@ __DATA__ } --- pipelined_requests eval ["GET /balancer", "GET /balancer"] ---- response_body eval -["this is backend peer \$TEST_NGINX_RAND_PORT_4", "this is backend peer \$TEST_NGINX_RAND_PORT_4"] +--- error_code eval +[200, 200] === TEST 3: lua resty.kong.upstream.set_next_upstream() --- http_config @@ -239,8 +239,8 @@ __DATA__ } --- pipelined_requests eval ["GET /balancer", "GET /balancer"] ---- response_body eval -["this is backend peer \$TEST_NGINX_RAND_PORT_4", "this is backend peer \$TEST_NGINX_RAND_PORT_4"] +--- error_code eval +[200, 200] === TEST 4: lua resty.kong.upstream.set_next_upstream() with error --- http_config