mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Fix common Windows failure (#10397)
The `getNonLoopBackIP` may grab an IP from an interface that doesn't allow binding (on Windows), so this test consistently fails. We exclude that specific error.
This commit is contained in:
parent
1c085f7d1a
commit
a89d6b8e3d
@ -186,6 +186,10 @@ func TestHTTPListenerStartClose(t *testing.T) {
|
||||
testCase.serverAddrs,
|
||||
)
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "The requested address is not valid in its context") {
|
||||
// Ignore if IP is unbindable.
|
||||
continue
|
||||
}
|
||||
t.Fatalf("Test %d: error: expected = <nil>, got = %v", i+1, err)
|
||||
}
|
||||
|
||||
@ -225,6 +229,10 @@ func TestHTTPListenerAddr(t *testing.T) {
|
||||
testCase.serverAddrs,
|
||||
)
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "The requested address is not valid in its context") {
|
||||
// Ignore if IP is unbindable.
|
||||
continue
|
||||
}
|
||||
t.Fatalf("Test %d: error: expected = <nil>, got = %v", i+1, err)
|
||||
}
|
||||
|
||||
@ -261,6 +269,10 @@ func TestHTTPListenerAddrs(t *testing.T) {
|
||||
testCase.serverAddrs,
|
||||
)
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "The requested address is not valid in its context") {
|
||||
// Ignore if IP is unbindable.
|
||||
continue
|
||||
}
|
||||
t.Fatalf("Test %d: error: expected = <nil>, got = %v", i+1, err)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user