diff options
author | Santiago M. Mola <santi@mola.io> | 2016-10-24 15:14:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-24 15:14:22 +0200 |
commit | d45eb0402b2f3dace2ed1f91ee53e2c591a7ba3c (patch) | |
tree | 7e52ed37c12ec51c6efa3c33c0f38d135bd2c122 /remote_test.go | |
parent | 8cd772a53e8ecd2687b739eea110fa9b179f1e0f (diff) | |
download | go-git-d45eb0402b2f3dace2ed1f91ee53e2c591a7ba3c.tar.gz |
utils/fs: move 'os' and 'test' to separate packages. (#93)
* create utils/fs/test package to expose generic test suite to 3rd party fs implementations.
* move 'os' to its own package to avoid cyclic dependency (test -> fs -> test, becomes test -> fs, os -> test, os -> fs).
* remove TestCreateAndWrite: some of our implementations cannot read a file that was just created, written and not closed yet.
Diffstat (limited to 'remote_test.go')
-rw-r--r-- | remote_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remote_test.go b/remote_test.go index 12e4625..cb5cca5 100644 --- a/remote_test.go +++ b/remote_test.go @@ -8,7 +8,7 @@ import ( "gopkg.in/src-d/go-git.v4/core" "gopkg.in/src-d/go-git.v4/storage/filesystem" "gopkg.in/src-d/go-git.v4/storage/memory" - "gopkg.in/src-d/go-git.v4/utils/fs" + osfs "gopkg.in/src-d/go-git.v4/utils/fs/os" . "gopkg.in/check.v1" ) @@ -88,7 +88,7 @@ func (s *RemoteSuite) TestFetchObjectStorageWriter(c *C) { defer os.RemoveAll(dir) // clean up var sto Storage - sto, err = filesystem.NewStorage(fs.NewOS(dir)) + sto, err = filesystem.NewStorage(osfs.NewOS(dir)) c.Assert(err, IsNil) r := newRemote(sto, &config.RemoteConfig{Name: "foo", URL: RepositoryFixture}) |