fix flaky test_user_relationship_test.exs:81 #240

Merged
floatingghost merged 1 commit from ilja/akkoma:fix_flaky_test_user_relationship_test.exs_81 into develop 2022-11-01 14:44:23 +00:00

1 commit

Author SHA1 Message Date
ilja
3562eaeedc fix flaky test_user_relationship_test.exs:81
Some checks are pending
ci/woodpecker/pr/woodpecker Pipeline is pending
The problem was double. On the one hand, the function didn't actually return what was in the DB.
On the other hand the test was flaky because it used NaiveDateTime.utc_now() so test could fail or pass depending on a difference of microseconds.

Both are fixed now.
2022-10-23 13:31:01 +02:00