Skip to content

Intermittent test failure #62

@dblock

Description

@dblock
  Scenario: Send JSON data
    ✔  Given I use the default hyperclient config     # features/steps/default_config.rb:4
    ✔  When I send some data to the API               # features/steps/default_config.rb:12
    !  Then it should have been encoded as JSON       # features/steps/default_config.rb:17

        The request POST http://api.example.org/posts with body "{\"title\":\"My first blog post\"}" was expected to execute 1 time but it executed 0 times

        The following requests were made:

        GET http://api.example.org/ with headers {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/json', 'User-Agent'=>'Faraday v0.9.0'} was made 1 time

        ============================================================
        /Users/dblock/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0/gems/webmock-1.18.0/lib/webmock/assertion_failure.rb:7:in `failure'

  Scenario: Parse JSON data
    ✔  Given I use the default hyperclient config     # features/steps/default_config.rb:4
    ✔  When I get some data from the API              # features/steps/default_config.rb:21
    ✔  Then it should have been parsed as JSON        # features/steps/default_config.rb:25

Error summary:
  Errors (1)
    Default config :: Send JSON data :: Then it should have been encoded as JSON

This is intermittent, 3 out of 10 runs. Looks suspicious.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions