Unit tests for site are reusing the domain and invoking either app deletion or domain deletion at the end of the test. However, consumed gears is not being updated, so a user in the DB looks like: { "_id" : "app_test1", "apps" : [ ], "consumed_gears" : 5, "domains" : [ ], "login" : "app_test1", "max_gears" : 5, "ssh_keys" : { }, "uuid" : "7945a098eecc4fd0a3308e57f8eb33a2", "vip" : false } Suspect the count isn't being updated.
Count was wrongly updated in the beginning, as a result even if the app count was 0, the gear count could be 1. *** This bug has been marked as a duplicate of bug 806817 ***