forcecraft/aion

refactor(elixir): Add a proper setup and on_exit methods in QuestionChronicleTest

Closed this issue · 1 comments

This is a follow-up issue for #159

Type

Fix

Current behaviour
The tests for QuestionChronicleTest were all using the same instance of QuestionChronicle agent. It meant the tests could collide with each other and ran in different order every time.

Expected behaviour
We need to start and stop separate instances of the Agent with every test.

Motivation / use case
Deterministic test runs

This was fixed along with #163