From 457c6f43dc26d891ecfabc33b4dc08cdc8dd71fa Mon Sep 17 00:00:00 2001 From: xmdhs Date: Thu, 12 Oct 2023 21:00:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/auth_test.go | 2 +- test/config.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/auth_test.go b/test/auth_test.go index eee3cdc..3ce10c8 100644 --- a/test/auth_test.go +++ b/test/auth_test.go @@ -31,5 +31,5 @@ func TestAuthMiddleware(t *testing.T) { var api model.API[any] require.Nil(t, json.NewDecoder(rep1.Body).Decode(&api)) - assert.Equal(t, api.Code, 5) + assert.Equal(t, int(api.Code), int(5)) } diff --git a/test/config.toml b/test/config.toml index ca3aff3..aedee1e 100644 --- a/test/config.toml +++ b/test/config.toml @@ -3,7 +3,7 @@ offlineUUID = true port = '127.0.0.1:8080' # 输出每条执行的 sql 语句 -debug = false +debug = true # 位于反向代理后启用,用于记录真实 ip # 若直接提供服务,请勿打开,否则会被伪造 ip raelIP = false