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

pull/3605/head
James Phillips 7 years ago
parent e8e4e5f867
commit ad9425ca63
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11

@ -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")
}
}
Loading…
Cancel
Save