Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rgen committed Mar 18, 2014
1 parent 9dc95d1 commit 3731230
Show file tree
Hide file tree
Showing 12 changed files with 126 additions and 164 deletions.
5 changes: 3 additions & 2 deletions calendarserver/accesslog.py
Expand Up @@ -155,8 +155,9 @@ def emit(self, eventDict):
format += ' i=%(serverInstance)s'
formatArgs["serverInstance"] = config.LogID if config.LogID else "0"

format += ' or=%(outstandingRequests)s'
formatArgs["outstandingRequests"] = request.chanRequest.channel.factory.outstandingRequests
if request.chanRequest: # This can be None during tests
format += ' or=%(outstandingRequests)s'
formatArgs["outstandingRequests"] = request.chanRequest.channel.factory.outstandingRequests

# Tags for time stamps collected along the way - the first one in the list is the initial
# time for request creation - we use that to track the entire request/response time
Expand Down
2 changes: 1 addition & 1 deletion calendarserver/provision/root.py
Expand Up @@ -160,7 +160,7 @@ def checkSacl(self, request):
request.checkingSACL = True

for collection in self.principalCollections():
principal = collection._principalForURI(authzUser.children[0].children[0].data)
principal = yield collection._principalForURI(authzUser.children[0].children[0].data)
if principal is None:
response = (yield UnauthorizedResponse.makeResponse(
request.credentialFactories,
Expand Down

0 comments on commit 3731230

Please sign in to comment.