Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

httpclient-2.1.5.2 fails tests #39

Closed
graaff opened this issue Sep 18, 2010 · 3 comments
Closed

httpclient-2.1.5.2 fails tests #39

graaff opened this issue Sep 18, 2010 · 3 comments
Labels

Comments

@graaff
Copy link

graaff commented Sep 18, 2010

I get several test failures when trying to run the tests that come with httpclient:

  1. Error:
    test_find_cookie(TestCookieManager):
    NoMethodError: undefined method use=' for nil:NilClass ./test/test_cookie.rb:239:intest_find_cookie'

  2. Failure:
    test_cookies(TestHTTPClient) [./test/test_httpclient.rb:797]:
    <"http://rubyforge.org/account/login.php\tsession_ser\tLjEwMy45Ni40Ni0q%2A-fa0537de8cc31\t2000000000\t.rubyforge.org\t/\t13\nhttp://rubyforge.org/account/login.php\tfoo\tbar\t1924902000\trubyforge.org\t/login.php\t1\n"> expected to be =~
    </http://rubyforge.org/account/login.php foo bar 1924873200 rubyforge.org /login.php 1/>.

  3. Failure:
    test_response(TestHTTPClient) [./test/test_httpclient.rb:964]:
    <["",
    "Content-Length: 8",
    "Content-Type: text/plain",
    "Last-Modified: Fri, 31 Dec 1999 15:00:00 GMT",
    "Status: 200 OK",
    "response"]> expected but was
    <["",
    "Content-Length: 8",
    "Content-Type: text/plain",
    "Last-Modified: Fri, 31 Dec 1999 23:00:00 GMT",
    "Status: 200 OK",
    "response"]>.

129 tests, 525 assertions, 2 failures, 1 errors
rake aborted!
Command failed with status (1): [/usr/bin/ruby18 -w -I"lib:lib" "/usr/lib64...]

@nahi
Copy link
Owner

nahi commented Dec 12, 2010

Hmm. Tests works for me...

@graaff
Copy link
Author

graaff commented Dec 18, 2010

I've just tried again with a fresh clone of httpclient, and I still get errors 2) and 3), so it looks like 1) is now solved.

  1. appears to be a timezone issue, this probably happens because I am in a different timezone from you and have set my system accordingly. On second inspection I believe that 2) is caused by the same issue as it seems only the timestamp differs.

@graaff
Copy link
Author

graaff commented Apr 20, 2011

httpclient 2.2.0.1 still has similar test failures:

  1. Failure:
    test_cookies(TestHTTPClient) [./test/test_httpclient.rb:942]:
    <"http://rubyforge.org/account/login.php\tsession_ser\tLjEwMy45Ni40Ni0q%2A-fa0537de8cc31\t2000000000\t.rubyforge.org\t/\t13\nhttp://rubyforge.org/account/login.php\tfoo\tbar\t1924902000\trubyforge.org\t/account\t1\n"> expected to be =~
    </http://rubyforge.org/account/login.php foo bar 1924873200 rubyforge.org /account 1/>.

  2. Failure:
    test_response(TestHTTPClient) [./test/test_httpclient.rb:1109]:
    <["",
    "Content-Length: 8",
    "Content-Type: text/plain",
    "Last-Modified: Fri, 31 Dec 1999 15:00:00 GMT",
    "Status: 200 OK",
    "response"]> expected but was
    <["",
    "Content-Length: 8",
    "Content-Type: text/plain",
    "Last-Modified: Fri, 31 Dec 1999 23:00:00 GMT",
    "Status: 200 OK",
    "response"]>.

  3. Failure:
    test_response_cookies(TestHTTPClient) [./test/test_httpclient.rb:1184]:
    <["",
    "Content-Length: 8",
    "Content-Type: text/plain",
    "Last-Modified: Fri, 31 Dec 1999 15:00:00 GMT",
    "Set-Cookie: CUSTOMER=WILE_E_COYOTE; path=/; expires=Wednesday, 09-Nov-99 23:12:40 GMT",
    "Set-Cookie: PART_NUMBER=ROCKET_LAUNCHER_0001; path=/",
    "Status: 200 OK",
    "response"]> expected but was
    <["",
    "Content-Length: 8",
    "Content-Type: text/plain",
    "Last-Modified: Fri, 31 Dec 1999 23:00:00 GMT",
    "Set-Cookie: CUSTOMER=WILE_E_COYOTE; path=/; expires=Wednesday, 09-Nov-99 23:12:40 GMT",
    "Set-Cookie: PART_NUMBER=ROCKET_LAUNCHER_0001; path=/",
    "Status: 200 OK",
    "response"]>.

151 tests, 626 assertions, 3 failures, 0 errors

@nahi nahi closed this as completed in c156a0f Jun 2, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants