Closed NRHelmi closed 1 year ago
Please add to description a step-by-step of what Was happening to cause the intermittent failure and the new step-by-step of what will happen instead
Tests use EngineFixture
to handle engine creation, the EngineFixture
is shared between test classes using the ICollectionFixture
the same way as it is described in xunit shared context between tests documentation
The issue is happening this way:
_engine
field from the EngineFixture
class is nullPROVISIONING
state)_engine
field from the EngineFixture
class is still null: the test calls Client.CreateEngineWaitAsync
while the engine is in PROVISIONING
state and fails.The other tests fail in the same way with this message: Conflict: engine already exists
.
Instead we edited the EngineFixture
to check if the engine exists or not:
PROVISIONED
state, the test will use this engine. PROVISONED
the test will fail with an EngineProvisionFailedException
.
Please add to description a step-by-step of what Was happening to cause the intermittent failure and the new step-by-step of what will happen instead