Skip to content

Commit

Permalink
Merge pull request #102615 from lunhuijie/fixTestOrderInhttpTest
Browse files Browse the repository at this point in the history
Fix test order in /pkg/probe/http/http_test.go
  • Loading branch information
k8s-ci-robot committed Jun 8, 2021
2 parents db34c5a + d8e91ab commit 887e5e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/probe/http/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ func TestHTTPProbeChecker_PayloadTruncated(t *testing.T) {
require.NoError(t, err)
result, body, err := prober.Probe(target, headers, wait.ForeverTestTimeout)
assert.NoError(t, err)
assert.Equal(t, result, probe.Success)
assert.Equal(t, body, string(truncatedPayload))
assert.Equal(t, probe.Success, result)
assert.Equal(t, string(truncatedPayload), body)
})
}

Expand Down Expand Up @@ -541,7 +541,7 @@ func TestHTTPProbeChecker_PayloadNormal(t *testing.T) {
require.NoError(t, err)
result, body, err := prober.Probe(target, headers, wait.ForeverTestTimeout)
assert.NoError(t, err)
assert.Equal(t, result, probe.Success)
assert.Equal(t, body, string(normalPayload))
assert.Equal(t, probe.Success, result)
assert.Equal(t, string(normalPayload), body)
})
}

0 comments on commit 887e5e6

Please sign in to comment.