From 35d30059cf4598264c430e6593bfe488dde9881d Mon Sep 17 00:00:00 2001 From: Matteo Pace Date: Tue, 28 Mar 2023 23:36:46 +0200 Subject: [PATCH] address review: better error messages --- runner/run_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runner/run_test.go b/runner/run_test.go index 015d831a..d6357b18 100644 --- a/runner/run_test.go +++ b/runner/run_test.go @@ -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) {