Commit d472055a authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

net/http: remove a flag accidentally submitted in CL 121419

I thought I removed this but failed to amend it to my commit before
submitting.

Change-Id: I2d687d91f4de72251548faa700006af0fea503af
Reviewed-on: https://go-review.googlesource.com/121615
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarDaniel Martí <mvdan@mvdan.cc>
parent 62d270e0
...@@ -14,7 +14,6 @@ import ( ...@@ -14,7 +14,6 @@ import (
"crypto/tls" "crypto/tls"
"encoding/json" "encoding/json"
"errors" "errors"
"flag"
"fmt" "fmt"
"internal/testenv" "internal/testenv"
"io" "io"
...@@ -5563,11 +5562,9 @@ func testServerShutdown(t *testing.T, h2 bool) { ...@@ -5563,11 +5562,9 @@ func testServerShutdown(t *testing.T, h2 bool) {
} }
} }
var slowTests = flag.Bool("slow", false, "run slow tests")
func TestServerShutdownStateNew(t *testing.T) { func TestServerShutdownStateNew(t *testing.T) {
if !*slowTests { if testing.Short() {
t.Skip("skipping slow test without -slow flag") t.Skip("test takes 5-6 seconds; skipping in short mode")
} }
setParallel(t) setParallel(t)
defer afterTest(t) defer afterTest(t)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment