From 860c41441b3bcf542b5701ae2257812879ce47b4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 19 Oct 2021 19:01:12 +0300 Subject: Set DTAIL_RUN_INTEGRATIONT_TEST to yes for integration tests --- integrationtests/dtail_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'integrationtests/dtail_test.go') diff --git a/integrationtests/dtail_test.go b/integrationtests/dtail_test.go index 4af7401..c6d0107 100644 --- a/integrationtests/dtail_test.go +++ b/integrationtests/dtail_test.go @@ -7,9 +7,15 @@ import ( "strings" "testing" "time" + + "github.com/mimecast/dtail/internal/config" ) func TestDTailWithServer(t *testing.T) { + if !config.Env("DTAIL_RUN_INTEGRATION_TESTS") { + t.Log("Skipping") + return + } followFile := "dtail.follow.tmp" greetings := []string{"world!", "sol-system!", "milky-way!", "universe!", "multiverse!"} @@ -122,6 +128,10 @@ func TestDTailWithServer(t *testing.T) { } func TestDTailColorTable(t *testing.T) { + if !config.Env("DTAIL_RUN_INTEGRATION_TESTS") { + t.Log("Skipping") + return + } stdoutFile := "dtailcolortable.stdout.tmp" expectedStdoutFile := "dtailcolortable.expected" -- cgit v1.2.3