Skip to content

Commit 4a98e98

Browse files
committed
Remove unnecessary context
1 parent 0482515 commit 4a98e98

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

tests/framework/prometheus.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ type PrometheusConfig struct {
3636
// InstallPrometheus installs Prometheus in the cluster.
3737
// It waits for Prometheus pods to be ready before returning.
3838
func InstallPrometheus(
39-
ctx context.Context,
4039
rm ResourceManager,
4140
cfg PrometheusConfig,
4241
) (PrometheusInstance, error) {

tests/suite/scale_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,7 @@ var _ = Describe("Scale test", Ordered, Label("nfr", "scale"), func() {
7979
ScrapeInterval: scrapeInterval,
8080
}
8181

82-
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
83-
defer cancel()
84-
85-
promInstance, err = framework.InstallPrometheus(ctx, resourceManager, promCfg)
82+
promInstance, err = framework.InstallPrometheus(resourceManager, promCfg)
8683
Expect(err).ToNot(HaveOccurred())
8784

8885
k8sConfig := ctlr.GetConfigOrDie()

0 commit comments

Comments
 (0)