Skip to content

Adds tests and fixes some async issues in transaction#37

Merged
itsjoeconway merged 2 commits intomasterfrom
jc/unawaited-transaction
Apr 2, 2018
Merged

Adds tests and fixes some async issues in transaction#37
itsjoeconway merged 2 commits intomasterfrom
jc/unawaited-transaction

Conversation

@itsjoeconway
Copy link
Contributor

  • Fixes issue where a transaction closure would continue executing when a query throws. Subsequent queries were not run, but that the code ran could still lead to other bugs.

  • Ensure that transactions are tore down correctly if an unawaited query throws.

@codecov-io
Copy link

codecov-io commented Apr 1, 2018

Codecov Report

Merging #37 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #37      +/-   ##
==========================================
+ Coverage   91.18%   91.19%   +<.01%     
==========================================
  Files          11       11              
  Lines         976      977       +1     
==========================================
+ Hits          890      891       +1     
  Misses         86       86
Impacted Files Coverage Δ
lib/src/transaction_proxy.dart 90.47% <100%> (+0.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d82d12...76501b6. Read the comment docs.

@itsjoeconway itsjoeconway merged commit 8f542f1 into master Apr 2, 2018
@itsjoeconway itsjoeconway deleted the jc/unawaited-transaction branch April 2, 2018 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants