From ad9425ca6353b8afcfebd19130a8cf768f7eac30 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Fri, 20 Oct 2017 17:05:25 -0700 Subject: [PATCH] Adds a canary test to fail Consul's test w/o porter. --- testutil/porter_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 testutil/porter_test.go diff --git a/testutil/porter_test.go b/testutil/porter_test.go new file mode 100644 index 0000000000..8595b74b69 --- /dev/null +++ b/testutil/porter_test.go @@ -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") + } +}