Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky test: create/2 creates a token with correct email/password and TOTP code #21

Open
taobojlen opened this issue Jul 14, 2022 · 0 comments

Comments

@taobojlen
Copy link
Member

  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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant