Skip to content

Commit

Permalink
fix: user tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammedamarnah committed Apr 27, 2024
1 parent dcf93d8 commit ccf5e67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ func TestUser(t *testing.T) {
t.Run("correct input", func(t *testing.T) {
t.Run("inactive user", func(t *testing.T) {
_, err := service.LoginInternal(ctx, user1_input.Email, user1_input.Password, nil)
if err == nil {
t.Fatal("should not login. user is still inactive")
if err != nil {
t.Fatal("should still login, even if user is inactive")
}
})

Expand Down

0 comments on commit ccf5e67

Please sign in to comment.