Skip to content

Commit e2cc8fa

Browse files
author
kabbohus
committed
Fix log error in verification response verification
Signed-off-by: kabbohus <hussein.kabbout@united-security-providers.ch>
1 parent 7931b46 commit e2cc8fa

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

test/e2e/tests/response-override.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,11 @@ func verifyCustomResponse(t *testing.T, timeoutConfig *config.TimeoutConfig, gwA
178178
return false
179179
}
180180

181-
if expected.bodyNotEqual && string(body) == expected.body {
182-
tlog.Logf(t, "expected response body NOT to be %s, but it was", expected.body)
183-
return false
181+
if expected.bodyNotEqual {
182+
if string(body) == expected.body {
183+
tlog.Logf(t, "expected response body NOT to be %s", expected.body)
184+
return false
185+
}
184186
} else if string(body) != expected.body {
185187
tlog.Logf(t, "expected response body to be %s but got %s", expected.body, string(body))
186188
return false

0 commit comments

Comments
 (0)