Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #412 from kaccardi/topic/flag-parse
Browse files Browse the repository at this point in the history
testutil: call flag.Parse in TestMain
  • Loading branch information
Tim Pepper authored Jul 29, 2016
2 parents 0749a39 + cdd5887 commit 7e1677b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testutil/client_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package testutil_test

import (
"flag"
"fmt"
"os"
"testing"
Expand Down Expand Up @@ -558,6 +559,10 @@ func TestPublicIPAssigned(t *testing.T) {
func TestMain(m *testing.M) {
var err error

// anything that uses ssntp must call flag.Parse first
// due to glog.
flag.Parse()

// start server
StartTestServer(&server)

Expand Down

0 comments on commit 7e1677b

Please sign in to comment.