mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-24 02:32:17 +08:00
fix unit test error
This commit is contained in:
parent
dc0536e308
commit
378f2370ff
@ -101,7 +101,7 @@ func TestDebugPrintWARNINGNew(t *testing.T) {
|
||||
defer teardown()
|
||||
|
||||
debugPrintWARNINGNew()
|
||||
assert.Equal(t, "[GIN-debug] [WARNING] Running in \"debug\" mode. Switch to \"release\" mode in production.\n - using env:\t\texport GIN_MODE=release\n - using code:\t\tgin.SetMode(gin.ReleaseMode)\n\n", w.String())
|
||||
assert.Equal(t, "[GIN-debug] [WARNING] Running in \"debug\" mode. Switch to \"release\" mode in production.\n - using env:\texport GIN_MODE=release\n - using code:\tgin.SetMode(gin.ReleaseMode)\n\n", w.String())
|
||||
}
|
||||
|
||||
func setup(w io.Writer) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user