aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-09-20 15:23:37 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-09-20 15:23:37 +0200
commit18d7e8eb4610a224c28ec848692d199669be3e8e (patch)
treec0d477dda8474ec48d2402c6a0fb2548a31c2f79 /utils
parent7e8d7125446bb6e12a056a5a6ca979727790d0df (diff)
downloadgo-git-18d7e8eb4610a224c28ec848692d199669be3e8e.tar.gz
fix build
Diffstat (limited to 'utils')
-rw-r--r--utils/fs/os_test.go4
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"))
}