Skip to content

Commit c5deff8

Browse files
committed
remove unneeded message for not found error
1 parent 06339a4 commit c5deff8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

hooks_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/gofiber/fiber/v3/log"
109
"github.com/stretchr/testify/assert"
1110
"github.com/stretchr/testify/require"
1211
"github.com/valyala/bytebufferpool"
12+
13+
"github.com/gofiber/fiber/v3/log"
1314
)
1415

1516
const testMountPath = "/api"
@@ -281,7 +282,7 @@ func Test_Hook_OnListen(t *testing.T) {
281282
time.Sleep(1000 * time.Millisecond)
282283
assert.NoError(t, app.Shutdown())
283284
}()
284-
require.NoError(t, app.Listen(":9000"))
285+
require.NoError(t, app.Listen(":9100"))
285286

286287
require.Equal(t, "ready", buf.String())
287288
}

middleware/keyauth/keyauth_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"strings"
1111
"testing"
1212

13+
"github.com/stretchr/testify/assert"
1314
"github.com/stretchr/testify/require"
1415

1516
"github.com/gofiber/fiber/v3"
@@ -192,7 +193,7 @@ func Test_AuthSources(t *testing.T) {
192193

193194
if authSource == paramExtractorName && testKey == "" {
194195
expectedCode = 404
195-
expectedBody = "Cannot GET /"
196+
expectedBody = "Not Found"
196197
}
197198
require.Equal(t, expectedCode, res.StatusCode, test.description)
198199
require.Equal(t, expectedBody, string(body), test.description)

0 commit comments

Comments
 (0)