Skip to content

Commit

Permalink
Fixes test server startup returning wrong error.
Browse files Browse the repository at this point in the history
  • Loading branch information
slackpad committed Mar 24, 2017
1 parent 9a6dd65 commit 15e7247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testutil/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15e7247

Please sign in to comment.