Skip to content

Commit 4177fdc

Browse files
committed
fix tests build
Code was broken after merging src-d#30 and src-d#31 together. Signed-off-by: Santiago M. Mola <[email protected]>
1 parent 817c38f commit 4177fdc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/siva/pack_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (s *PackSuite) TestBasic(c *C) {
7373
c.Assert(err, IsNil)
7474
size := 249
7575
for _, file := range s.files {
76-
size += len(cleanPath(file))
76+
size += len(siva.ToSafePath(file))
7777
}
7878
c.Assert(int(fi.Size()), Equals, size)
7979

@@ -100,7 +100,7 @@ func (s *PackSuite) TestDir(c *C) {
100100
c.Assert(err, IsNil)
101101
size := 249
102102
for _, file := range s.files {
103-
size += len(cleanPath(file))
103+
size += len(siva.ToSafePath(file))
104104
}
105105
c.Assert(int(fi.Size()), Equals, size)
106106

@@ -133,7 +133,7 @@ func (s *PackSuite) TestAppend(c *C) {
133133

134134
size := 277
135135
for _, file := range s.files {
136-
size += len(cleanPath(file))
136+
size += len(siva.ToSafePath(file))
137137
}
138138
c.Assert(int(fi.Size()), Equals, size)
139139

0 commit comments

Comments
 (0)