Skip to content

Commit 4187bf0

Browse files
committed
Fix unit test without root .acl file
1 parent baf7b46 commit 4187bf0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/integration/acl-tls-test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,15 @@ describe('ACL with WebID+TLS', function () {
8888
}
8989

9090
describe('no ACL', function () {
91-
it('should return 500 for any resource', function (done) {
91+
before(() => {
92+
rm(path.join(rootPath, '.acl'))
93+
})
94+
95+
it('should return 403 for any resource', function (done) {
9296
var options = createOptions('/acl-tls/no-acl/', 'user1')
9397
request(options, function (error, response, body) {
9498
assert.equal(error, null)
95-
assert.equal(response.statusCode, 500)
99+
assert.equal(response.statusCode, 403)
96100
done()
97101
})
98102
})

0 commit comments

Comments
 (0)