HackerExperience / Helix

GNU Affero General Public License v3.0
53 stars 10 forks source link

Hunt down non-deterministic cache test failures #306

Closed renatomassaro closed 6 years ago

renatomassaro commented 6 years ago

A few remarks:

renatomassaro commented 6 years ago

Insight: increasing the timeout of Channel-related tests (assert_reply, assert_push, assert_broadcast) reduces the amount of errors, specially those of "Account already created" and "Ecto ownership error".

It is probably unrelated to Cache, and it may account for the third bullet.

renatomassaro commented 6 years ago

Third bullet is solved on #322

Turns out two things happened:

renatomassaro commented 6 years ago

Bullets one and two were fixed on #329. So this issue is closed.

It happened because one test (queue_sync_test.exs) set the Sync interval to 50ms, which somehow impacted other tests, leading them to sync before it was supposed to.

For extra caution I've also modified the sync interval on the TEST environment to never be called.