Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 25, 2024
1 parent 595cb03 commit bba5069
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/tools/tools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (s *HelperTestSuite) TestGetMonitoringInfo() {

func (s *HelperTestSuite) TestGetPublicIPv4() {
ip, err := GetPublicIPv4()
s.Nil(err)
s.NoError(err)
s.NotEmpty(ip)
}

Expand All @@ -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)
}

0 comments on commit bba5069

Please sign in to comment.