From dc1ec9bbddc4a830289433c8f06e236273b0a68e Mon Sep 17 00:00:00 2001 From: Javier Guerra Date: Wed, 23 Jun 2021 12:46:02 -0500 Subject: [PATCH] Start every `Headers` field empty but non-null --- test/test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.go b/test/test.go index 9c6327b..d0b2900 100644 --- a/test/test.go +++ b/test/test.go @@ -217,8 +217,8 @@ func New(t *testing.T, req Request) (env *TestEnv, err error) { state: running, ClientReq: req, ServiceReq: req.clone(), - ServiceRes: Response{}, - ClientRes: Response{}, + ServiceRes: Response{Headers: make(http.Header)}, + ClientRes: Response{Headers: make(http.Header)}, } b := bridge.New(bridgetest.MockFunc(env)) // check