Skip to content

Commit

Permalink
address review: better error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
M4tteoP authored and fzipi committed Mar 29, 2023
1 parent 328ff4a commit 35d3005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runner/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -797,8 +797,8 @@ func TestApplyInputOverrideEmptyHostHeaderSetHostFromDestAddr(t *testing.T) {
assert.NotNil(t, testInput.Headers, "Header map must exist after overriding `dest_addr`")

hostHeader := testInput.Headers.Get("Host")
assert.NotEqual(t, "", hostHeader, "Host header must be set after overriding `dest_addr`")
assert.Equal(t, overrideHost, hostHeader, "Host header must be identical to `dest_addr` after overrding `dest_addr`")
assert.NotEqual(t, "", hostHeader, "Host header must be set after overriding `dest_addr` and setting `override_empty_host_header` to `true`")
assert.Equal(t, overrideHost, hostHeader, "Host header must be identical to `dest_addr` after overriding `dest_addr` and setting `override_emtpy_host_header` to `true`")
}

func TestApplyInputOverrideSetHostFromHostHeaderOverride(t *testing.T) {
Expand Down

0 comments on commit 35d3005

Please sign in to comment.