shroud.email
shroud.email copied to clipboard
Flaky test: create/2 creates a token with correct email/password and TOTP code
1) test create/2 creates a token with correct email/password and TOTP code (ShroudWeb.Api.V1.TokenControllerTest)
test/shroud_web/controllers/api/v1/token_controller_test.exs:26
** (ArgumentError) errors were found at the given arguments:
* 1st argument: not a nonempty list
code: token = hd(Repo.preload(user, :user_tokens).user_tokens).token
stacktrace:
:erlang.hd([])
test/shroud_web/controllers/api/v1/token_controller_test.exs:41: (test)