mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-15 10:07:24 +00:00
fix unit test
This commit is contained in:
1 parent
fe25414b45
commit
9f1860dff7
1 file changed
+5
-1
+5
-1
@@ -32,5 +32,9 @@ func (s *UtilsSuite) TestDirIsAccessibleNotExist(c *C) {
|
||||
}
|
||||
|
||||
func (s *UtilsSuite) TestDirIsAccessibleNotAccessible(c *C) {
|
||||
c.Check(DirIsAccessible(s.tempfile.Name()).Error(), Equals, fmt.Errorf("'%s' is inaccessible, check access rights", s.tempfile.Name()).Error())
|
||||
accessible := DirIsAccessible(s.tempfile.Name())
|
||||
if accessible == nil {
|
||||
c.Fatalf("Test dir should not be accessible: %s", s.tempfile.Name())
|
||||
}
|
||||
c.Check(accessible.Error(), Equals, fmt.Errorf("'%s' is inaccessible, check access rights", s.tempfile.Name()).Error())
|
||||
}
|
||||
Reference in new issue
Block a user