tests: remove test cases not applicable for docker. (#4951)

When running `make test` in docker, two test cases cause hanging.
This Patch fixes the problem by removing those test cases.

Thanks to @ws141 for identifying the problem.
This commit is contained in:
Bala FA
2017-09-27 13:51:26 -07:00
committed by Dee Koder
parent 02af37a394
commit 3c836b5f34
2 changed files with 2 additions and 15 deletions

View File

@@ -128,7 +128,6 @@ func TestMustGetLocalIP4(t *testing.T) {
}
func TestGetHostIP(t *testing.T) {
_, err := getHostIP4("myserver")
testCases := []struct {
host string
expectedIPList set.StringSet
@@ -136,7 +135,6 @@ func TestGetHostIP(t *testing.T) {
}{
{"localhost", set.CreateStringSet("127.0.0.1"), nil},
{"example.org", set.CreateStringSet("93.184.216.34"), nil},
{"myserver", nil, err},
}
for _, testCase := range testCases {