16347: Fix leaky state in test case.
authorTom Clegg <tom@curii.com>
Tue, 19 Oct 2021 14:08:40 +0000 (10:08 -0400)
committerTom Clegg <tom@curii.com>
Tue, 19 Oct 2021 14:08:40 +0000 (10:08 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

lib/crunchrun/integration_test.go

index 8adddd7053921ee25a18a8eead02af6d7c464c77..9b797fd8676a5dc5690c15ce7adbf5840488a292 100644 (file)
@@ -90,6 +90,7 @@ func (s *integrationSuite) SetUpSuite(c *C) {
 }
 
 func (s *integrationSuite) TearDownSuite(c *C) {
+       os.Unsetenv("ARVADOS_KEEP_SERVICES")
        if s.client == nil {
                // didn't set up
                return
@@ -99,6 +100,7 @@ func (s *integrationSuite) TearDownSuite(c *C) {
 }
 
 func (s *integrationSuite) SetUpTest(c *C) {
+       os.Unsetenv("ARVADOS_KEEP_SERVICES")
        s.engine = "docker"
        s.stdin = bytes.Buffer{}
        s.stdout = bytes.Buffer{}