httpclient-2.2.4 has broken tests due to ruby 1.8.7 hash ordering changes #87

Closed
graaff opened this Issue Apr 8, 2012 · 1 comment

Comments

Projects
None yet
2 participants

graaff commented Apr 8, 2012

With ruby 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux] I'm getting the following test failures, most likely caused by the introduced randomness in hash ordering in ruby 1.8.7.

  1) Failure:
test_delete(HTTPAccess2::TestClient) [./test/test_http-access2.rb:255]:
<"1=2&3=4"> expected but was
<"3=4&1=2">.

  2) Failure:
test_get(HTTPAccess2::TestClient) [./test/test_http-access2.rb:237]:
<"1=2&3=4"> expected but was
<"3=4&1=2">.

  3) Failure:
test_head(HTTPAccess2::TestClient) [./test/test_http-access2.rb:231]:
<"1=2&3=4"> expected but was
<"3=4&1=2">.

  4) Failure:
test_options(HTTPAccess2::TestClient) [./test/test_http-access2.rb:261]:
<"1=2&3=4"> expected but was
<"3=4&1=2">.

  5) Failure:
test_post(HTTPAccess2::TestClient) [./test/test_http-access2.rb:243]:
<"1=2&3=4"> expected but was
<"3=4&1=2">.

  6) Failure:
test_put(HTTPAccess2::TestClient) [./test/test_http-access2.rb:249]:
<"1=2&3=4"> expected but was
<"3=4&1=2">.

  7) Failure:
test_trace(HTTPAccess2::TestClient) [./test/test_http-access2.rb:267]:
<"1=2&3=4"> expected but was
<"3=4&1=2">.
Owner

nahi commented Apr 18, 2012

Thanks! 5f4a343 and 30349a2 should have fixed this problem.

@nahi nahi closed this Apr 18, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment