diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-20 15:23:37 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-20 15:23:37 +0200 |
commit | 18d7e8eb4610a224c28ec848692d199669be3e8e (patch) | |
tree | c0d477dda8474ec48d2402c6a0fb2548a31c2f79 /utils | |
parent | 7e8d7125446bb6e12a056a5a6ca979727790d0df (diff) | |
download | go-git-18d7e8eb4610a224c28ec848692d199669be3e8e.tar.gz |
fix build
Diffstat (limited to 'utils')
-rw-r--r-- | utils/fs/os_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/fs/os_test.go b/utils/fs/os_test.go index acc6bdd..a040ddf 100644 --- a/utils/fs/os_test.go +++ b/utils/fs/os_test.go @@ -20,7 +20,7 @@ func (s *WritersSuite) TestOSClient_Create(c *C) { f, err := client.Create("foo") c.Assert(err, IsNil) - c.Assert(f.(*OSFile).file.Name(), Equals, f.Filename()) + c.Assert(f.Filename(), Equals, "foo") } func (s *WritersSuite) TestOSClient_Write(c *C) { @@ -46,7 +46,7 @@ func (s *WritersSuite) TestOSClient_Close(c *C) { f.Write([]byte("foo")) c.Assert(f.Close(), IsNil) - wrote, _ := ioutil.ReadFile(f.Filename()) + wrote, _ := ioutil.ReadFile(f.(*OSFile).file.Name()) c.Assert(wrote, DeepEquals, []byte("foo")) } |