From 18d7e8eb4610a224c28ec848692d199669be3e8e Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Tue, 20 Sep 2016 15:23:37 +0200 Subject: fix build --- utils/fs/os_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/fs/os_test.go') 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")) } -- cgit