You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2022/11/10 01:58:18 UTC

[apisix] 17/18: test: fix incompatible test failure

This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch release/2.15
in repository https://gitbox.apache.org/repos/asf/apisix.git

commit 8be3a9816fb3d3e21cbce9cfa134e9e821003e47
Author: spacewander <sp...@gmail.com>
AuthorDate: Wed Nov 9 15:14:56 2022 +0800

    test: fix incompatible test failure
    
    Signed-off-by: spacewander <sp...@gmail.com>
---
 t/node/merge-route.t | 4 +++-
 t/plugin/plugin.t    | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/t/node/merge-route.t b/t/node/merge-route.t
index b6f1d467e..f5223de99 100644
--- a/t/node/merge-route.t
+++ b/t/node/merge-route.t
@@ -180,7 +180,9 @@ qr/1980/
                             "time_window": 60,
                             "rejected_code": 503,
                             "key": "remote_addr",
-                            "disable": true
+                            "_meta": {
+                                "disable": true
+                            }
                         }
                     },
                     "uri": "/server_port",
diff --git a/t/plugin/plugin.t b/t/plugin/plugin.t
index 7ad45bc0d..7886e324a 100644
--- a/t/plugin/plugin.t
+++ b/t/plugin/plugin.t
@@ -762,7 +762,8 @@ GET /hello
                     upstream = {
                         nodes = {
                             ["127.0.0.1:1980"] = 1
-                        }
+                        },
+                        type = "roundrobin"
                     },
                     uri = "/hello"
                 }