From 45c8b084c67abd1852a727ef2ecfc3e9867d726d Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Wed, 16 Jan 2019 17:13:36 +0800 Subject: [PATCH] fix TestFailedStartupExitCode (#5076) Signed-off-by: rleungx --- cmd/prometheus/main_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/prometheus/main_test.go b/cmd/prometheus/main_test.go index d0bd128b0d..46aac157db 100644 --- a/cmd/prometheus/main_test.go +++ b/cmd/prometheus/main_test.go @@ -163,6 +163,10 @@ func TestComputeExternalURL(t *testing.T) { // Let's provide an invalid configuration file and verify the exit status indicates the error. func TestFailedStartupExitCode(t *testing.T) { + if testing.Short() { + t.Skip("skipping test in short mode.") + } + fakeInputFile := "fake-input-file" expectedExitStatus := 1