Skip to content

Commit

Permalink
text: fix wrong T used in asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed Jan 26, 2024
1 parent 69d5e67 commit 2bde005
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions e2e/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ func testPeriodically(t *testing.T, m *e2e.Minikube, e *e2e.Extension) {
if metric.Metric["error"] != "" {
log.Info().Msgf("Metric error: %v", metric.Metric["error"])
}
assert.Equal(t, "200", metric.Metric["http_status"])
assert.Equal(c, "200", metric.Metric["http_status"])
} else {
assert.NotEqual(t, "200", metric.Metric["http_status"])
assert.NotEqual(c, "200", metric.Metric["http_status"])
//error -> Get "https://hub-dev.steadybit.com": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
assert.Contains(t, metric.Metric["error"], "context deadline exceeded")
assert.Contains(c, metric.Metric["error"], "context deadline exceeded")
}
}
}, 5*time.Second, 500*time.Millisecond)
Expand Down Expand Up @@ -177,11 +177,11 @@ func testFixAmount(t *testing.T, m *e2e.Minikube, e *e2e.Extension) {
metrics := action.Metrics()
for _, metric := range metrics {
if !tt.WantedFailure {
assert.Equal(t, metric.Metric["http_status"], "200")
assert.Equal(c, metric.Metric["http_status"], "200")
} else {
assert.NotEqual(t, metric.Metric["http_status"], "200")
assert.NotEqual(c, metric.Metric["http_status"], "200")
//error -> Get "https://hub-dev.steadybit.com": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
assert.Contains(t, metric.Metric["error"], "context deadline exceeded")
assert.Contains(c, metric.Metric["error"], "context deadline exceeded")
}
}
}, 5*time.Second, 500*time.Millisecond)
Expand Down

0 comments on commit 2bde005

Please sign in to comment.