diff options
Diffstat (limited to 'utils/fs')
-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")) } |