Skip to content

Bug: coldfront.core.project.test_views.ProjectListViewTest.test_project_list_search is Flaky #732

@Eric-Butcher

Description

@Eric-Butcher

What happened?

A test in the project application is very flaky. Most of the time it will not fail but every once in awhile it will.

The most likely reason could think of for this test failing is because the test was mistakenly written believing the Factories always create unique objects, and that when it happens to return a preexisting object somewhere that this throws things off. Will have to investigate further.

Version

1.1.6

Component

Other

What browsers are you seeing the problem on?

None

Relevant log output

======================================================================
FAIL: test_project_list_search (coldfront.core.project.test_views.ProjectListViewTest.test_project_list_search)
Test that project list search works.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/eric/Work/coldfront/coldfront/core/project/test_views.py", line 304, in test_project_list_search
    self.assertEqual(len(response.context["object_list"]), 1)
AssertionError: 2 != 1

----------------------------------------------------------------------

Tasks/ user tests when bug is fixed

  • [ ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions