Skip to content

Commit

Permalink
feat: Adjusting unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MaChao committed Apr 2, 2023
1 parent e7f1a48 commit 8f9ceb2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions t/plugin/traffic-split2.t
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ __DATA__
upstream = {
name = "upstream_A",
type = "roundrobin",
nodes = {["127.0.0.1:1981"] = 1}
nodes = {["127.0.0.1:1981"] = 1},
scheme = "http"
},
weight = 1,
}
Expand All @@ -68,7 +69,8 @@ __DATA__
},
upstream = {
type = "roundrobin",
nodes = {["127.0.0.1:1980"] = 1}
nodes = {["127.0.0.1:1980"] = 1},
scheme = "http"
}
}
local code, body = t('/apisix/admin/routes/1',
Expand Down Expand Up @@ -278,7 +280,7 @@ GET /uri?name=jack
host: 127.0.0.1
--- response_body
uri: /uri
host: localhost
host: localhost:1981
x-real-ip: 127.0.0.1
Expand Down

0 comments on commit 8f9ceb2

Please sign in to comment.