Skip to content

Flaky unit test TestStaticPods_Lifecycle/health_check_fails_after_stopped #2287

Open

Description

Very rarely seen on CI:

 --- FAIL: TestStaticPods_Lifecycle (0.17s)
    --- FAIL: TestStaticPods_Lifecycle/health_check_fails_after_stopped (0.00s)
        static_pods_test.go:313: 
            	Error Trace:	/go/src/github.com/k0sproject/k0s/pkg/component/worker/static_pods_test.go:313
            	Error:      	An error is expected but got nil.
            	Test:       	TestStaticPods_Lifecycle/health_check_fails_after_stopped
FAIL
FAIL	github.com/k0sproject/k0s/pkg/component/worker	0.361s

Seems to be a race condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area/cibugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions