Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update provider plugin to create middleware idempotent #103

Merged
merged 6 commits into from
Apr 4, 2018

Conversation

ganemone
Copy link
Contributor

@ganemone ganemone commented Apr 4, 2018

Fixes #104

KevinGrandon and others added 6 commits April 4, 2018 15:20
Simulation tests will currently call middleware functions several times in a row. This middleware fails due to changing originalMiddleware, and is not idempotent. This should allow us to call this middleware several times with the same result.

The issue is seen in the simulation tests added here: fusionjs/fusion-cli#302
@codecov
Copy link

codecov bot commented Apr 4, 2018

Codecov Report

Merging #103 into master will increase coverage by 7.36%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #103      +/-   ##
==========================================
+ Coverage   83.01%   90.38%   +7.36%     
==========================================
  Files           6        6              
  Lines          53       52       -1     
  Branches       11       11              
==========================================
+ Hits           44       47       +3     
+ Misses          6        4       -2     
+ Partials        3        1       -2
Impacted Files Coverage Δ
src/plugin.js 91.66% <100%> (+30.12%) ⬆️

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 7680500...aab2724. Read the comment docs.

@ganemone ganemone self-assigned this Apr 4, 2018
@mlmorg
Copy link
Contributor

mlmorg commented Apr 4, 2018

Link to task with description of what error/issue you would see in your app

@ganemone
Copy link
Contributor Author

ganemone commented Apr 4, 2018

!merge

@old-fusion-bot old-fusion-bot bot merged commit 8a5788f into master Apr 4, 2018
@ganemone ganemone deleted the KevinGrandon-idempotent-middleware-handling branch April 4, 2018 20:47
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.

None yet

5 participants