|
@@ -208,16 +208,6 @@ func TestNewListenerAndURL(t *testing.T) {
|
208
|
208
|
wantURLRe: regexp.MustCompile(`http://localhost:\d+`),
|
209
|
209
|
wantLocal: true,
|
210
|
210
|
},
|
211
|
|
- {
|
212
|
|
- hostport: "127.0.0.1:",
|
213
|
|
- wantURLRe: regexp.MustCompile(`http://127\.0\.0\.1:\d+`),
|
214
|
|
- wantLocal: true,
|
215
|
|
- },
|
216
|
|
- {
|
217
|
|
- hostport: "localhost:12344",
|
218
|
|
- wantURLRe: regexp.MustCompile(`http://localhost:12344`),
|
219
|
|
- wantLocal: true,
|
220
|
|
- },
|
221
|
211
|
{
|
222
|
212
|
hostport: "http://localhost:12345",
|
223
|
213
|
wantErr: true,
|