X-Git-Url: http://nitlanguage.org diff --git a/tests/test_nitcorn.nit b/tests/test_nitcorn.nit index e4088a2..b7fcd90 100644 --- a/tests/test_nitcorn.nit +++ b/tests/test_nitcorn.nit @@ -17,8 +17,8 @@ import pthreads redef class Sys var iface: String is lazy do - srand - return "localhost:{10000+20000.rand}" + var testid = "NIT_TESTING_ID".environ.to_i + return "localhost:{10000+testid}" end var fs_path: String = getcwd / "../lib/nitcorn/examples/www/hello_world/dir" is lazy @@ -86,6 +86,7 @@ class ClientThread system "curl -s '{iface}/simple_answer?i=0123&s=asdf'" system "curl -s {iface}/simple_answer --data 'i=0123&s=asdf'" system "curl -s {iface}/simple_answer --cookie 'i=0123; s=asdf'" + system "curl -s {iface}/simple_answer --get --data-urlencode 's=b b'" system "curl -s {iface}/params_answer/0123/asdf" system "curl -s {iface}/params_answer/0123/"