Skip to content

Commit

Permalink
Fix test order in /pkg/probe/http/http_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
lunhuijie committed Jun 5, 2021
1 parent 8eff96d commit d8e91ab
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 d8e91ab

Please sign in to comment.