islador / Ananke

A Voice Coms Authorization system for EVE Online
1 stars 0 forks source link

View/Api/New spec and controller/api_controller spec order dependency failure #2

Open islador opened 10 years ago

islador commented 10 years ago

When view/api/new follows controller/api_controller spec it suffers from numerous order dependency failures. These specs pass individually or when view/api/new precedes api_controller's spec. The cause is currently unknown.

islador commented 10 years ago

Discovered that VCR + Sidekiq interplay is likely the cause of the problem. The following steps have resulted in all specs passing under seed 29206.

  1. Minimize VCR and Sidekiq usage.
    • When not possible to completely remove both, use VCR insert_cassette/eject_cassette in before(:all) > before(:each) blocks. This is believed to help as it keeps the cassette active before and throughout each individual spec.
  2. Minimize side by side use of Selenium and VCR.
    • Selenium is known to interact poorly with VCR, this is due to the async nature of Selenium's JS tools.