mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
fix: test
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user