From 15e724713167bcaf4d97c5435564c1787f434336 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Thu, 23 Mar 2017 21:40:14 -0700 Subject: [PATCH] Fixes test server startup returning wrong error. Seen in https://travis-ci.org/hashicorp/consul/builds/214521317. --- testutil/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testutil/server.go b/testutil/server.go index befc1d5ae7..1e736bd6e8 100644 --- a/testutil/server.go +++ b/testutil/server.go @@ -250,7 +250,7 @@ func NewTestServerConfig(cb ServerConfigCallback) (*TestServer, error) { } if startErr != nil { defer server.Stop() - return nil, errors.Wrap(err, "failed waiting for server to start") + return nil, errors.Wrap(startErr, "failed waiting for server to start") } return server, nil