2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00

fix: tests

This commit is contained in:
2025-12-02 01:54:18 +08:00
parent d8e0957f79
commit 16cb85b07f
3 changed files with 7 additions and 8 deletions

View File

@@ -271,7 +271,7 @@ func (s *VhostTestSuite) TestBasicAuth() {
s.NotNil(got)
s.Equal(auth["user_file"], got["user_file"])
err = s.vhost.SetBasicAuth(nil)
err = s.vhost.ClearBasicAuth()
s.NoError(err)
s.Nil(s.vhost.BasicAuth())
}
@@ -288,7 +288,7 @@ func (s *VhostTestSuite) TestRateLimit() {
got := s.vhost.RateLimit()
s.NotNil(got)
err = s.vhost.SetRateLimit(nil)
err = s.vhost.ClearRateLimit()
s.NoError(err)
s.Nil(s.vhost.RateLimit())
}