summaryrefslogtreecommitdiff
path: root/service/http/h2c_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/h2c_test.go')
-rw-r--r--service/http/h2c_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/service/http/h2c_test.go b/service/http/h2c_test.go
index e2669845..7bbc30ac 100644
--- a/service/http/h2c_test.go
+++ b/service/http/h2c_test.go
@@ -36,7 +36,12 @@ func Test_Service_H2C(t *testing.T) {
// should do nothing
s.(*Service).Stop()
- go func() { c.Serve() }()
+ go func() {
+ err := c.Serve()
+ if err != nil {
+ t.Errorf("error serving: %v", err)
+ }
+ }()
time.Sleep(time.Millisecond * 100)
defer c.Stop()