diff options
Diffstat (limited to 'repository_test.go')
-rw-r--r-- | repository_test.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/repository_test.go b/repository_test.go index 8956a9d..261af7a 100644 --- a/repository_test.go +++ b/repository_test.go @@ -550,28 +550,6 @@ func (s *RepositorySuite) TestPlainOpenNotExistsDetectDotGit(c *C) { c.Assert(r, IsNil) } -func (s *RepositorySuite) TestPlainOpenStatic(c *C) { - dir, err := ioutil.TempDir("", "plain-open") - c.Assert(err, IsNil) - defer os.RemoveAll(dir) - - r, err := PlainInit(dir, true) - c.Assert(err, IsNil) - c.Assert(r, NotNil) - - op := &PlainOpenOptions{ - Storage: storer.Options{Static: true}, - } - - r, err = PlainOpenWithOptions(dir, op) - c.Assert(err, IsNil) - c.Assert(r, NotNil) - - sto, ok := r.Storer.(*filesystem.Storage) - c.Assert(ok, Equals, true) - c.Assert(sto.Options.Static, Equals, true) -} - func (s *RepositorySuite) TestPlainClone(c *C) { r, err := PlainClone(c.MkDir(), false, &CloneOptions{ URL: s.GetBasicLocalRepositoryURL(), |