20318: Ensure empty cache for test case.
[arvados.git] / services / keep-web / handler_test.go
index 85c7801cd4cc2a6c6d4be8b4195803bad4b1962b..eefab36e69bac17ce7ca975836e444a7de9a141b 100644 (file)
@@ -209,6 +209,10 @@ func (s *UnitSuite) TestWebdavPrefixAndSource(c *check.C) {
 }
 
 func (s *UnitSuite) TestEmptyResponse(c *check.C) {
+       // Ensure we start with an empty cache
+       defer os.Setenv("HOME", os.Getenv("HOME"))
+       os.Setenv("HOME", c.MkDir())
+
        for _, trial := range []struct {
                dataExists    bool
                sendIMSHeader bool