Adds a canary test to fail Consul's test w/o porter.

This commit is contained in:
James Phillips 2017-10-20 17:05:25 -07:00
parent e8e4e5f867
commit ad9425ca63
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 13 additions and 0 deletions

13
testutil/porter_test.go Normal file
View File

@ -0,0 +1,13 @@
package testutil
import (
"testing"
"github.com/hashicorp/consul/test/porter"
)
func Test_PorterIsRunning(t *testing.T) {
if _, err := porter.RandomPorts(1); err != nil {
t.Fatalf("Porter must be running for Consul's unit tests")
}
}