16347: Fix leaky state in test case.
[arvados.git] / 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{}