Skip to content

Brittle Test #8

@baldurrensch

Description

@baldurrensch

There is a test that looks at the time of the response object, and randomly, they are not created in the same second, so the test fails. Make this more stable.

1) BR\SignedRequestBundle\Tests\EventListener\SignedRequestListenerTest::testMissingHeader
Expectation failed for method name is equal to <string:setResponse> when invoked 1 time(s)
Parameter 0 for invocation Symfony\Component\HttpKernel\Event\GetResponseEvent::setResponse(Symfony\Component\HttpFoundation\Response Object (...)) does not match expected value.
Failed asserting that two objects are equal.
--- Expected
+++ Actual
@@ @@
             'date' => Array (
-                0 => 'Wed, 03 Jul 2013 06:36:37 GMT'
+                0 => 'Wed, 03 Jul 2013 06:36:38 GMT'
             )
         )
         'cacheControl' => Array ()
     )
     'content' => 'Major fail'
     'version' => '1.0'
     'statusCode' => 400
     'statusText' => 'Bad Request'
     'charset' => null
 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions