2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00

fix: test

This commit is contained in:
耗子
2024-10-25 16:53:08 +08:00
parent 595cb03c67
commit bba50692b3

View File

@@ -20,7 +20,7 @@ func (s *HelperTestSuite) TestGetMonitoringInfo() {
func (s *HelperTestSuite) TestGetPublicIPv4() {
ip, err := GetPublicIPv4()
s.Nil(err)
s.NoError(err)
s.NotEmpty(ip)
}
@@ -32,12 +32,12 @@ func (s *HelperTestSuite) TestGetPublicIPv6() {
func (s *HelperTestSuite) TestGetLocalIPv4() {
ip, err := GetLocalIPv4()
s.Nil(err)
s.NoError(err)
s.NotEmpty(ip)
}
func (s *HelperTestSuite) TestGetLocalIPv6() {
ip, err := GetLocalIPv6()
s.Nil(err)
s.NotEmpty(ip)
s.Error(err)
s.Empty(ip)
}