susannemoog / sauceExtension

Codeception Extension to support automated testing via sauce labs
MIT License
8 stars 7 forks source link

[ErrorException] Undefined offset: 0 #3

Open motin opened 10 years ago

motin commented 10 years ago

Sometimes (around every 20th time tests are run), the tests fail intermittently with the following error output:

There was 1 error:

---------
1) Failed to perform actions and see result in FooCept.php

  [ErrorException] Undefined offset: 0  

#1  /path/to/code/tests/vendor/psychomieze/sauceextension/extensions/sauce/SauceExtension.php:55
#2  /path/to/code/tests/vendor/psychomieze/sauceextension/extensions/sauce/SauceExtension.php:25
#3  /path/to/code/tests/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php:164
#4  /path/to/code/tests/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php:53

Relevant code links: https://github.com/psychomieze/sauceExtension/blob/master/extensions/sauce/SauceExtension.php#L55 https://github.com/psychomieze/sauceExtension/blob/master/extensions/sauce/SauceExtension.php#L25

mrfelton commented 10 years ago

Also seeing this

susannemoog commented 10 years ago

I'd guess it is a timing problem, the whole api is a bit fragile, if the test runs too fast or the connection is too slow getting the job name will fail.

vistiyos commented 9 years ago

Also seeing this issue recently, is there any plan to fix that, or may I provide a solution for this issue?