openshift-pipelines/pipelines-as-code

Unittest are failing randomly

Closed this issue · 2 comments

Gettings somee random failures with unittests:

[go-ninja-go : unittest] === RUN   TestGetStatusFromTaskStatusOrFromAsking/get_status_with_displayName
[go-ninja-go : unittest]     task_status_test.go:296: assertion failed:
[go-ninja-go : unittest]         --- tt.displayNames
[go-ninja-go : unittest]         +++ displayNames
[go-ninja-go : unittest]           []string{
[go-ninja-go : unittest]         -  "Hello Moto",
[go-ninja-go : unittest]         +  "",
[go-ninja-go : unittest]         -  "",
[go-ninja-go : unittest]         +  "Hello Moto",
[go-ninja-go : unittest]           }
[go-ninja-go : unittest]
[go-ninja-go : unittest] === RUN   TestGetStatusFromTaskStatusOrFromAsking/get_status_from_child_references_post_tektoncd/pipelines_0.44
[go-ninja-go : unittest] === RUN   TestGetStatusFromTaskStatusOrFromAsking/error_get_status_from_child_references_post_tektoncd/pipelines_0.44
[go-ninja-go : unittest] --- FAIL: TestGetStatusFromTaskStatusOrFromAsking (0.01s)
[go-ninja-go : unittest]     --- FAIL: TestGetStatusFromTaskStatusOrFromAsking/get_status_with_displayName (0.00s)
[go-ninja-go : unittest]     --- PASS: TestGetStatusFromTaskStatusOrFromAsking/get_status_from_child_references_post_tektoncd/pipelines_0.44 (0.00s)
[go-ninja-go : unittest]     --- PASS: TestGetStatusFromTaskStatusOrFromAsking/error_get_status_from_child_references_post_tektoncd/pipelines_0.44 (0.00s)
[go-ninja-go : unittest] FAIL

I think this is the same because of the order of element of array

you are right, i got it back into efe34de and it's merged in main so closing this