remove test that is now extraneous

This commit is contained in:
Alec Grieser 2019-03-22 13:20:00 -04:00
parent 001fde718c
commit 9e15872418
No known key found for this signature in database
GPG Key ID: CAF63551C60D3462

View File

@ -414,28 +414,7 @@ def test_timeouts(db):
def test_combinations(db): def test_combinations(db):
# (1) Hitting retry limit cancels transaction # (1) Cancellation does survive on_error() even when retry limit is hit
@retry_with_timeout(default_timeout)
def txn1(tr):
tr.options.set_retry_limit(0)
tr.options.set_timeout(100)
try:
tr.on_error(fdb.FDBError(1007)).wait() # should throw
raise TestError("Retry limit was ignored.")
except fdb.FDBError as e:
if e.code != 1007:
raise
time.sleep(1)
try:
tr.commit().wait() # should throw
raise TestError("Hitting retry limit did not cancel the transaction.")
except fdb.FDBError as e:
if e.code != 1025:
raise
txn1(db)
# (2) Cancellation does survive on_error() even when retry limit is hit
@retry_with_timeout(default_timeout) @retry_with_timeout(default_timeout)
def txn2(tr): def txn2(tr):
tr.options.set_retry_limit(0) tr.options.set_retry_limit(0)
@ -453,4 +432,4 @@ def test_combinations(db):
if e.code != 1025: if e.code != 1025:
raise raise
txn2(db) txn1(db)