[CalendarServer-changes] [11546] CalendarServer/trunk/txdav/caldav/datastore/scheduling/processing. py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jul 23 07:43:27 PDT 2013
Revision: 11546
http://trac.calendarserver.org//changeset/11546
Author: cdaboo at apple.com
Date: 2013-07-23 07:43:27 -0700 (Tue, 23 Jul 2013)
Log Message:
-----------
Fix hash randomization issue causing test to failure intermittently.
Modified Paths:
--------------
CalendarServer/trunk/txdav/caldav/datastore/scheduling/processing.py
Modified: CalendarServer/trunk/txdav/caldav/datastore/scheduling/processing.py
===================================================================
--- CalendarServer/trunk/txdav/caldav/datastore/scheduling/processing.py 2013-07-23 01:11:06 UTC (rev 11545)
+++ CalendarServer/trunk/txdav/caldav/datastore/scheduling/processing.py 2013-07-23 14:43:27 UTC (rev 11546)
@@ -868,7 +868,7 @@
partstat = "MIXED RESPONSE"
# Default state is whichever of free or busy has most instances
- defaultPartStat = max(partstat_counts.items(), key=lambda x: x[1])[0]
+ defaultPartStat = max(sorted(partstat_counts.items()), key=lambda x: x[1])[0]
# See if there is a master component first
hadMasterRsvp = False
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130723/6f5743c2/attachment-0001.html>
More information about the calendarserver-changes
mailing list