From 136966fc0b0f41897bb64945d43487c0d2b19fd9 Mon Sep 17 00:00:00 2001 From: David Fifield Date: Sat, 16 Oct 2021 00:47:56 -0600 Subject: [PATCH] Remove obsolete test for POST in decodeRequest. The HTTP method check is done at a higher level, since d10e993364fcb72b7ab6bbc855354f9e8d835c51. --- champa-server/main_test.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/champa-server/main_test.go b/champa-server/main_test.go index 2b6dc22..6be3d5c 100644 --- a/champa-server/main_test.go +++ b/champa-server/main_test.go @@ -22,13 +22,6 @@ func TestDecodeRequest(t *testing.T) { defPayload := []byte("abcde") defEncoded := string(base64.RawURLEncoding.EncodeToString(bytes.Join([][]byte{defClientID[:], defPayload}, nil))) - // Only GET is allowed. - req := mustNewRequest("POST", "/0/XXXX/"+defEncoded) - clientID, payload := decodeRequest(req) - if payload != nil { - t.Errorf("POST request → (%v, %+q)", clientID, payload) - } - for _, test := range []struct { path string expectedClientID turbotunnel.ClientID -- 2.11.4.GIT