Skip to content

Test test_delete_question is flaky #2674

@styrix560

Description

@styrix560

The test sometimes fails an error like the following:

----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/EvaP/EvaP/evap/staff/tests/test_views.py", line 3392, in test_delete_question
    self.assertQuerySetEqual(other_question.questionnaires.all(), [other_questionnaire])
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Lists differ: [<Questionnaire: ccBmyxSEHFbordyEnZcw>, <Questionnaire: VjfPCFfTrMXLkbvedxEg>] != [<Questionnaire: VjfPCFfTrMXLkbvedxEg>]

First differing element 0:
<Questionnaire: ccBmyxSEHFbordyEnZcw>
<Questionnaire: VjfPCFfTrMXLkbvedxEg>

First list contains 1 additional elements.
First extra element 1:
<Questionnaire: VjfPCFfTrMXLkbvedxEg>

- [<Questionnaire: ccBmyxSEHFbordyEnZcw>, <Questionnaire: VjfPCFfTrMXLkbvedxEg>]
+ [<Questionnaire: VjfPCFfTrMXLkbvedxEg>]

The used shuffle seed was 785091457

Runs:

Metadata

Metadata

Labels

[C] Tests and CINew or better testing and CI[P] MinorMinor priority[T] BugThis is a bug. We don't like it. Please get rid of it.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions