Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 956a277

Browse files
committed
Make test a little harder to pass
1 parent 149d4e2 commit 956a277

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/tests/urlcode01.vtc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ varnish v1 -vcl+backend {
2424
set beresp.http.Bar3 = urlcode.encode(beresp.http.Foo3 + " "
2525
+ beresp.http.Foo4) + "!";
2626
set beresp.http.Baz3 = urlcode.decode("hello" + beresp.http.Foo5
27-
+ "0world") + "!";
27+
+ beresp.http.nonexistant + "0world") + "!";
2828
set beresp.http.Baz4 = urlcode.decode("hello" + beresp.http.Foo6
29-
+ "20world") + "!";
29+
+ beresp.http.nonexistant + "20world") + "!";
3030
set beresp.http.Baz5 = urlcode.decode("hello" + beresp.http.Foo7
31-
+ "world") + "!";
32-
set beresp.http.Bar6 = urlcode.encode("hello"
3331
+ beresp.http.nonexistant + "world") + "!";
34-
set beresp.http.Baz6 = urlcode.decode("hello"
32+
set beresp.http.Bar6 = urlcode.encode("hello "
33+
+ beresp.http.nonexistant + "world") + "!";
34+
set beresp.http.Baz6 = urlcode.decode({"hello%20"}
3535
+ beresp.http.nonexistant + "world") + "!";
3636
}
3737
} -start
@@ -51,5 +51,6 @@ client c1 {
5151
expect resp.http.baz3 == "hello world!"
5252
expect resp.http.baz4 == "hello world!"
5353
expect resp.http.baz5 == "hello world!"
54-
expect resp.http.baz6 == "helloworld!"
54+
expect resp.http.bar6 == "hello%20world!"
55+
expect resp.http.baz6 == "hello world!"
5556
} -run

0 commit comments

Comments
 (0)