Skip to content

Fix conditional test failure - TestStore List/with multiple existing projects #23

@sonofachamp

Description

@sonofachamp

The TestStore List/with multiple existing projects test randomly fails due to non-deterministic ordering:

--- FAIL: TestStore_List (0.01s)
    --- FAIL: TestStore_List/with_multiple_existing_projects (0.01s)
        store_test.go:59: 
                Error Trace:    store_test.go:59
                Error:          Not equal: 
                                expected: []string{"chicken", "cow"}
                                actual  : []string{"cow", "chicken"}
                            
                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1,4 +1,4 @@
                                 ([]string) (len=2) {
                                - (string) (len=7) "chicken",
                                - (string) (len=3) "cow"
                                + (string) (len=3) "cow",
                                + (string) (len=7) "chicken"
                                 }
                Test:           TestStore_List/with_multiple_existing_projects
FAIL

Metadata

Metadata

Assignees

Labels

type/bugIssues that are bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions