From fc40ad9dcaf86549232843730eda96e9e27a27ea Mon Sep 17 00:00:00 2001 From: Seth Saperstein Date: Mon, 13 Nov 2023 18:44:32 -0800 Subject: [PATCH] fix failing unit tests due to flag parse --- integ/main_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/integ/main_test.go b/integ/main_test.go index d5209dde..87112365 100644 --- a/integ/main_test.go +++ b/integ/main_test.go @@ -27,7 +27,10 @@ type IntegSuite struct { var _ = Suite(&IntegSuite{}) func Test(t *testing.T) { - flag.Parse() + var integration = os.Getenv("INTEGRATION") != "" + if integration { + flag.Parse() + } TestingT(t) }