Skip to content

Commit

Permalink
Skip test if go version < 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianperkins committed Nov 29, 2016
1 parent 96201f3 commit 00c668f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions connection_test.go
Expand Up @@ -727,6 +727,10 @@ func TestNetDialTimeout(t *testing.T) {
}

func TestNetDialCancelContext(t *testing.T) {
if runtime.Version() < "go1.7" {
t.Skipf("go version is < 1.7")
}

// timeoutHostPort uses a blackholed address (RFC 6890) with a port
// reserved for documentation. This address should always cause a timeout.
const timeoutHostPort = "192.18.0.254:44444"
Expand Down

0 comments on commit 00c668f

Please sign in to comment.