TooManyRequestsException shouldn't actually throw an error

all other errors thrown here are network issues, this is not.
This commit is contained in:
jomo
2015-09-20 21:43:12 +02:00
parent 06895cdd81
commit a15cb20144
3 changed files with 4 additions and 8 deletions

View File

@@ -1013,8 +1013,8 @@ describe("Crafatar", function() {
it("uuid should be rate limited", function(done) {
networking.get_profile(rid, id, function() {
networking.get_profile(rid, id, function(err, profile) {
assert.strictEqual(err.message, "TooManyRequestsException");
assert.strictEqual(profile.error, "TooManyRequestsException");
assert.ifError(err);
assert.strictEqual(profile, null);
done();
});
});