Argus icon indicating copy to clipboard operation
Argus copied to clipboard

Test can randomly fail

Open hmpf opened this issue 2 years ago • 1 comments

def test_can_get_my_incidents(self):
    incident_pk = self.add_open_incident_with_start_event_and_tag().pk      
    other_incident_pk = StatefulIncidentFactory().pk`
    …

self.add_open_incident_with_start_event_and_tag() uses StatefulIncidentFactory() with a pregenerated source. There is nothing here to prevent the same source to be used in the second call to StatefulIncidentFactory() .

Originally posted by @hmpf in https://github.com/Uninett/Argus/issues/727#issuecomment-1945976211

hmpf avatar Feb 15 '24 12:02 hmpf

See also #791

hmpf avatar Aug 21 '24 08:08 hmpf