mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 16:06:51 +00:00
Merge pull request #122833 from kannon92/add-density-test-flake
mark density tests as flaky
This commit is contained in:
@@ -526,6 +526,21 @@ func withLabel(label string) interface{} {
|
||||
return newLabel(label)
|
||||
}
|
||||
|
||||
// WithFlaky specifies that a certain test or group of tests are failing randomly.
|
||||
// These tests are usually filtered out and ran separately from other tests.
|
||||
func WithFlaky() interface{} {
|
||||
return withFlaky()
|
||||
}
|
||||
|
||||
// WithFlaky is a shorthand for the corresponding package function.
|
||||
func (f *Framework) WithFlaky() interface{} {
|
||||
return withFlaky()
|
||||
}
|
||||
|
||||
func withFlaky() interface{} {
|
||||
return newLabel("Flaky")
|
||||
}
|
||||
|
||||
type label struct {
|
||||
// parts get concatenated with ":" to build the full label.
|
||||
parts []string
|
||||
|
||||
Reference in New Issue
Block a user