Skip to content

Commit 2f6e1a5

Browse files
committed
Merge branch 'develop' into INFOPLAT-3250/test-lint
2 parents d74980f + a2a9a95 commit 2f6e1a5

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

pkg/utils/tests/tests.go

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ package tests
22

33
import (
44
"context"
5-
"os"
6-
"strconv"
7-
"sync"
85
"testing"
96
"time"
107

@@ -71,29 +68,3 @@ func RequireSignal(t *testing.T, ch <-chan struct{}, failMsg string) {
7168
t.Fatal(failMsg)
7269
}
7370
}
74-
75-
// SkipShort skips tb during -short runs, and notes why.
76-
func SkipShort(tb testing.TB, why string) {
77-
if testing.Short() {
78-
tb.Skipf("skipping: %s", why)
79-
}
80-
}
81-
82-
const envVarRunFlakey = "CL_RUN_FLAKEY"
83-
84-
var runFlakey = sync.OnceValues(func() (bool, error) {
85-
s := os.Getenv(envVarRunFlakey)
86-
if s == "" {
87-
return false, nil
88-
}
89-
return strconv.ParseBool(s)
90-
})
91-
92-
func SkipFlakey(t *testing.T, ticketURL string) {
93-
if ok, err := runFlakey(); !ok {
94-
if err != nil {
95-
t.Logf("Failed to parse %s: %v", envVarRunFlakey, err)
96-
}
97-
t.Skip("Flakey", ticketURL)
98-
}
99-
}

0 commit comments

Comments
 (0)