Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Unified Diff: net/tools/testserver/chromiumsync_test.py

Issue 7477004: Simulate transient error and verify exponential backoff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload before commit. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/testserver/chromiumsync.py ('k') | net/tools/testserver/testserver.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/testserver/chromiumsync_test.py
diff --git a/net/tools/testserver/chromiumsync_test.py b/net/tools/testserver/chromiumsync_test.py
index af8aa360bd40f40a09cca9d17c98ee24e74d6c5a..1872a9da2f6b5878ba956fda3536f70c06e1a60a 100755
--- a/net/tools/testserver/chromiumsync_test.py
+++ b/net/tools/testserver/chromiumsync_test.py
@@ -437,6 +437,16 @@ class SyncDataModelTest(unittest.TestCase):
self.assertEqual(pickle.loads(marker.token), (3000, 1))
self.assertFalse(marker.HasField('timestamp_token_for_migration'))
+ def testCheckRaiseTransientError(self):
+ testserver = chromiumsync.TestServer()
+ http_code, raw_respon = testserver.HandleSetTransientError()
+ self.assertEqual(http_code, 200)
+ try:
+ testserver.CheckTransientError()
+ self.fail('Should have raised transient error exception')
+ except chromiumsync.TransientError:
+ self.assertTrue(testserver.transient_error)
+
def testUpdateSieveStoreMigration(self):
autofill = autofill_specifics_pb2.autofill
theme = theme_specifics_pb2.theme
« no previous file with comments | « net/tools/testserver/chromiumsync.py ('k') | net/tools/testserver/testserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698