Skip to content

Commit

Permalink
excluding linux with g01.20 with ip extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Jul 5, 2023
1 parent b11f326 commit 77627da
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ip/iputil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import (
)

func TestTryExtendIP(t *testing.T) {
if osutils.IsLinux() {
return
}
if osutils.IsWindows() {
i, err := TryExtendIP("localhost")
require.Nil(t, i)
Expand Down Expand Up @@ -58,13 +61,13 @@ func TestTryExtendIP(t *testing.T) {

for _, tc := range testCases {
ip, err := TryExtendIP(tc.input)
require.Equal(t, tc.expectedError, err != nil)
require.Equal(t, tc.expectedError, err != nil, "input: %v, error: %v", tc.input, err)
require.True(t, ip.Equal(tc.expectedIP), "Expected IP: %v, got: %v", tc.expectedIP, ip)
}
}

func TestCanExtend(t *testing.T) {
if osutils.IsWindows() {
if osutils.IsWindows() || osutils.IsLinux() {
return
}

Expand Down

0 comments on commit 77627da

Please sign in to comment.