Skip to content

Commit

Permalink
ci(traffic-split): improve ci stability (apache#7055)
Browse files Browse the repository at this point in the history
Co-authored-by: soulbird <[email protected]>
  • Loading branch information
2 people authored and Liu-Junlin committed May 20, 2022
1 parent 51e747d commit 4434df0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions t/plugin/traffic-split.t
Original file line number Diff line number Diff line change
Expand Up @@ -696,16 +696,18 @@ GET /t
local json = require("toolkit.json")
local t = require("lib.test_admin").test
local data = {
uri = "/server_port",
uri = "/",
plugins = {
["traffic-split"] = {
rules = { {
weighted_upstreams = { {
upstream = {
name = "upstream_A",
type = "roundrobin",
pass_host = "rewrite",
upstream_host = "www.apiseven.com",
nodes = {
["apiseven.com:80"] = 0
["www.apiseven.com:80"] = 0
}
},
weight = 100000
Expand Down Expand Up @@ -743,10 +745,10 @@ passed

=== TEST 19: domain name resolved successfully
--- request
GET /server_port
--- error_code: 502
GET /
--- error_code: 200
--- error_log eval
qr/dns resolver domain: apiseven.com to \d+.\d+.\d+.\d+/
qr/dns resolver domain: www.apiseven.com to \d+.\d+.\d+.\d+/



Expand Down

0 comments on commit 4434df0

Please sign in to comment.