shroud.email icon indicating copy to clipboard operation
shroud.email copied to clipboard

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

Open taobojlen opened this issue 2 years ago • 0 comments

  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)

taobojlen avatar Jul 14 '22 12:07 taobojlen