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

vcd test is failing after fresh check out #11

Open
crawlik opened this issue Jan 7, 2014 · 1 comment
Open

vcd test is failing after fresh check out #11

crawlik opened this issue Jan 7, 2014 · 1 comment

Comments

@crawlik
Copy link

crawlik commented Jan 7, 2014

Steps

  • check out latest vcd-server

  • switch to stable version

  • bundle

  • start mongodb

  • run rspec
    Failures:

    1. Vayacondios::HttpServer GET /v2/organization/events/topic when some events match with a response body that includes each matching event
      Failure/Error: Unable to find matching line from backtrace
      expected [{"id"=>"id-2", "time"=>"2014-01-07T17:16:46.659Z", "foo"=>"bar"}, {"id"=>"id-1", "time"=>"2014-01-07T17:16:47.659Z", "foo"=>"bar"}, {"id"=>"id-0", "time"=>"2014-01-07T17:16:48.659Z", "foo"=>"bar"}] to include {"id"=>"id-2", "time"=>"2014-01-07 17:16:46 UTC", "foo"=>"bar"}, {"id"=>"id-1", "time"=>"2014-01-07 17:16:47 UTC", "foo"=>"bar"}, and {"id"=>"id-0", "time"=>"2014-01-07 17:16:48 UTC", "foo"=>"bar"}
      Diff:
      @@ -1,4 +1,4 @@
      -[{"id"=>"id-2", "time"=>"2014-01-07 17:16:46 UTC", "foo"=>"bar"},

      • {"id"=>"id-1", "time"=>"2014-01-07 17:16:47 UTC", "foo"=>"bar"},
      • {"id"=>"id-0", "time"=>"2014-01-07 17:16:48 UTC", "foo"=>"bar"}]
        +[{"id"=>"id-2", "time"=>"2014-01-07T17:16:46.659Z", "foo"=>"bar"},
      • {"id"=>"id-1", "time"=>"2014-01-07T17:16:47.659Z", "foo"=>"bar"},
      • {"id"=>"id-0", "time"=>"2014-01-07T17:16:48.659Z", "foo"=>"bar"}]

      ./spec/support/request_helper.rb:42:in `block (2 levels) in vcd'

      ./spec/support/request_helper.rb:28:in`block in vcd'

Finished in 1.61 seconds
427 examples, 1 failure

Wonder if something is misconfigured since test is failing just due to a different timezone format.

@kornypoet
Copy link
Contributor

@crawlik This does have to do with String formatting; it is a known issue. I am working on a vayacondios refactor at the moment, so I will track this one down. For now, you can move on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants