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

Commit

Permalink
f switch from 410 to 404
Browse files Browse the repository at this point in the history
  • Loading branch information
jrconlin committed Sep 13, 2019
1 parent 3e9348e commit 91fe51d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion autopush/router/fcm_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _process_error(self, failure):
reason="recpient_gone"
))
raise RouterException("FCM Recipient no longer available",
status_code=410,
status_code=404,
errno=106,
log_exception=False)
if isinstance(err, RouterException):
Expand Down
6 changes: 3 additions & 3 deletions autopush/tests/test_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,18 +968,18 @@ def check_results(fail):
return d

def test_router_notification_fcm_not_found_error(self):
self.response.code = 410
self.response.code = 404
self._set_content(json.dumps(
{"error":
{"code": 410,
{"code": 404,
"status": "NOT_FOUND",
"message": "Requested entity was not found."
}
}))
d = self.router.route_notification(self.notif, self.router_data)

def check_results(fail):
self._check_error_call(fail.value, 410,
self._check_error_call(fail.value, 404,
"FCM Recipient no longer available", 106)
d.addBoth(check_results)
return d
Expand Down

0 comments on commit 91fe51d

Please sign in to comment.