Skip to content

Commit

Permalink
Fix issue with randomly failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alschn committed Apr 28, 2024
1 parent 9153cb7 commit 41d5d4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/rooms/tests/test_rooms_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from django.test import TestCase
from django.urls import reverse_lazy
from rest_framework import status
from rest_framework.reverse import reverse
from rest_framework.test import APIClient

from beers.models import Beer
Expand Down Expand Up @@ -244,7 +243,7 @@ def test_create_room_wrong_slots_number(self):

def test_create_room_but_user_already_host_in_other_room(self):
user = UserFactory(username='new_host_user')
RoomFactory(name='test', host=user)
RoomFactory(name='test', host=user, state=Room.State.IN_PROGRESS)

self._require_login_and_auth(user=user)

Expand Down

0 comments on commit 41d5d4d

Please sign in to comment.