diff --git a/url/option_test.go b/url/option_test.go index aec3943..47a8662 100644 --- a/url/option_test.go +++ b/url/option_test.go @@ -19,18 +19,23 @@ func TestUrl_Handle(t *testing.T) { "mux=false;listen=127.0.0.1:0", "mux=false;listen=127.0.0.1:0;api=127.0.0.1:0", } + for _, s := range urlCases { for _, option := range optionCases { + s := s + option := option u := &url{ url: &s, option: &option, } u.Name() u.Priority() + errChan := make(chan error, 1) go func() { errChan <- u.Handle() }() + select { case err := <-errChan: t.Fatal(err)