We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8952a8 commit ba540efCopy full SHA for ba540ef
2 files changed
.github/workflows/ci.yml
@@ -7,7 +7,7 @@ on:
7
branches: [main]
8
9
env:
10
- GO_VERSION: "1.24"
+ GO_VERSION: "1.25"
11
12
jobs:
13
lint:
test/e2e/e2e_test.go
@@ -127,10 +127,13 @@ spec:
127
fmt.Sprintf("svc/%s-operator", helmRelease),
128
"18080:8080", "-n", namespace)
129
Expect(pf.Start()).To(Succeed())
130
- defer pf.Process.Kill() //nolint:errcheck
131
-
132
- time.Sleep(2 * time.Second)
+ DeferCleanup(func() {
+ if pf.Process != nil {
+ _ = pf.Process.Kill()
133
+ }
134
+ })
135
136
+ // Eventually handles connection-refused while port-forward is starting up.
137
Eventually(func(g Gomega) {
138
resp, err := http.Get("http://localhost:18080/metrics") //nolint:noctx
139
g.Expect(err).NotTo(HaveOccurred())
0 commit comments