mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-01 10:45:56 +08:00
fix comments to mark things that throw as throwing rather than not throwing
Co-Authored-By: alecgrieser <alloc@apple.com>
This commit is contained in:
parent
4ac3e790ad
commit
001fde718c
@ -238,7 +238,7 @@ def test_retry_limits(db):
|
||||
raise
|
||||
try:
|
||||
tr[b'foo'] = b'bar'
|
||||
tr.on_error(err).wait() # should not throw
|
||||
tr.on_error(err).wait() # should throw
|
||||
raise TestError('(5) Transaction not cancelled after error.')
|
||||
except fdb.FDBError as e:
|
||||
if e.code != 1025:
|
||||
@ -427,7 +427,7 @@ def test_combinations(db):
|
||||
raise
|
||||
time.sleep(1)
|
||||
try:
|
||||
tr.commit().wait() # should not throw
|
||||
tr.commit().wait() # should throw
|
||||
raise TestError("Hitting retry limit did not cancel the transaction.")
|
||||
except fdb.FDBError as e:
|
||||
if e.code != 1025:
|
||||
|
Loading…
x
Reference in New Issue
Block a user