From f1bf9187b7c4883b9b944d798adcc32c1b844b17 Mon Sep 17 00:00:00 2001 From: thinkerou Date: Tue, 14 Aug 2018 09:39:35 +0800 Subject: [PATCH] fix bug for go1.6 --- context_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/context_test.go b/context_test.go index 77e3cb73..99d5267d 100644 --- a/context_test.go +++ b/context_test.go @@ -585,7 +585,8 @@ func TestContextGetCookie(t *testing.T) { } func TestContextBodyAllowedForStatus(t *testing.T) { - assert.False(t, false, bodyAllowedForStatus(http.StatusProcessing)) + // todo(thinkerou): go1.6 not support StatusProcessing + assert.False(t, false, bodyAllowedForStatus(102)) assert.False(t, false, bodyAllowedForStatus(http.StatusNoContent)) assert.False(t, false, bodyAllowedForStatus(http.StatusNotModified)) assert.True(t, true, bodyAllowedForStatus(http.StatusInternalServerError))