From 3fea1d272bf9d9cae59270b4b1df395c201ef6c8 Mon Sep 17 00:00:00 2001 From: Patrick Peng Sun Date: Thu, 27 Apr 2017 02:16:55 +1000 Subject: [PATCH] echo order might be different remove one and keep only one --- server_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server_test.go b/server_test.go index 2dc54e1..d102045 100644 --- a/server_test.go +++ b/server_test.go @@ -33,8 +33,7 @@ func TestWebRootHandler(t *testing.T) { // Check the response body is what we expect. expected := `Hi there, I love dummydir! -echostr => [913461463450840893] -signature => [e39de9f2e28079c01ebb4b803dfc3442b819545c]` +echostr => [913461463450840893]` if rr.Body.String() != expected { t.Errorf("handler returned unexpected body: got %v want %v", @@ -120,7 +119,7 @@ func buildReqWechatWebRoot() *http.Request { req, _ := http.NewRequest("GET", "/dummydir", nil) buildReqCommonHeader(req) q := req.URL.Query() - q.Add("signature", "e39de9f2e28079c01ebb4b803dfc3442b819545c") + //q.Add("signature", "e39de9f2e28079c01ebb4b803dfc3442b819545c") q.Add("echostr", "913461463450840893") req.URL.RawQuery = q.Encode() return req