Skip to content

Commit 6ebcda3

Browse files
committed
tests: fixed test cases to reflect recent changes in the agentzh.org domain resolving results.
1 parent 5b618b9 commit 6ebcda3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/sanity.t

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ done
106106
--- request
107107
GET /t
108108
--- response_body
109-
foo.com:1234: [{"addr":"127.0.0.1:80","fail_timeout":53,"max_fails":100,"name":"127.0.0.1","weight":4},{"addr":"106.184.1.99:81","backup":true,"fail_timeout":10,"max_fails":1,"name":"agentzh.org:81","weight":1}]
109+
foo.com:1234: [{"addr":"127.0.0.1:80","fail_timeout":53,"max_fails":100,"name":"127.0.0.1","weight":4},{"addr":"172.105.207.225:81","backup":true,"fail_timeout":10,"max_fails":1,"name":"agentzh.org:81","weight":1}]
110110
bar: [{"addr":"127.0.0.2:80","fail_timeout":10,"max_fails":1,"name":"127.0.0.2","weight":1}]
111111
failed to get servers: upstream not found
112112
@@ -176,7 +176,7 @@ failed to get servers: upstream not found
176176
--- response_body
177177
upstream foo.com:
178178
addr = 127.0.0.1:80, fail_timeout = 53, max_fails = 100, name = 127.0.0.1, weight = 4
179-
addr = 106.184.1.99:81, fail_timeout = 10, max_fails = 1, name = agentzh.org:81, weight = 1
179+
addr = 172.105.207.225:81, fail_timeout = 10, max_fails = 1, name = agentzh.org:81, weight = 1
180180
upstream bar:
181181
addr = 127.0.0.2:80, fail_timeout = 10, max_fails = 1, name = 127.0.0.2, weight = 1
182182
--- no_error_log
@@ -275,7 +275,7 @@ upstream bar:
275275
--- request
276276
GET /t
277277
--- response_body
278-
[{"conns":0,"current_weight":0,"effective_weight":4,"fail_timeout":53,"fails":0,"id":0,"max_fails":100,"name":"127.0.0.1:80","weight":4},{"conns":0,"current_weight":0,"effective_weight":1,"fail_timeout":10,"fails":0,"id":1,"max_fails":1,"name":"106.184.1.99:81","weight":1}]
278+
[{"conns":0,"current_weight":0,"effective_weight":4,"fail_timeout":53,"fails":0,"id":0,"max_fails":100,"name":"127.0.0.1:80","weight":4},{"conns":0,"current_weight":0,"effective_weight":1,"fail_timeout":10,"fails":0,"id":1,"max_fails":1,"name":"172.105.207.225:81","weight":1}]
279279
[{"conns":0,"current_weight":0,"effective_weight":1,"fail_timeout":10,"fails":0,"id":0,"max_fails":1,"name":"127.0.0.2:80","weight":1}]
280280
--- no_error_log
281281
[error]

0 commit comments

Comments
 (0)