Skip to content

Commit d74ae49

Browse files
committed
fix improve transaction cleanup
1 parent 384f069 commit d74ae49

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test-new/transactions._coffee

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ beginTx = ->
3535
cleanupTxs = (_) ->
3636
# We parallelize these rollbacks to keep test performance fast:
3737
flows.collect _,
38+
# Streamline futures use `!` rather than `not` by convention.
39+
# coffeelint: disable=prefer_english_operator
3840
while tx = OPEN_TXS.pop() then do (tx, _=!_) ->
41+
# coffeelint: enable=prefer_english_operator
3942
switch tx.state
4043
when tx.STATE_COMMITTED, tx.STATE_ROLLED_BACK, tx.STATE_EXPIRED
4144
return

0 commit comments

Comments
 (0)