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

Use in-memory LiteDBStore in tests #521

Merged
merged 2 commits into from
Sep 20, 2019

Conversation

earlbread
Copy link
Contributor

This improves the test speed by using in-memory LiteDBStore in tests and restores test timeout to 10 minutes.

@earlbread earlbread self-assigned this Sep 19, 2019
limebell
limebell previously approved these changes Sep 19, 2019
@earlbread
Copy link
Contributor Author

I added the code to dispose MemoryStream and changed to create the database if the path parameter is null.

@codecov
Copy link

codecov bot commented Sep 19, 2019

Codecov Report

Merging #521 into master will increase coverage by 0.14%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #521      +/-   ##
==========================================
+ Coverage   90.18%   90.33%   +0.14%     
==========================================
  Files         201      201              
  Lines       14914    14924      +10     
==========================================
+ Hits        13450    13481      +31     
+ Misses       1187     1166      -21     
  Partials      277      277
Impacted Files Coverage Δ
...lanet.Tests/Blockchain/Policies/BlockPolicyTest.cs 98.7% <ø> (ø) ⬆️
Libplanet.Tests/Store/LiteDBStoreFixture.cs 93.75% <100%> (+2.08%) ⬆️
Libplanet.Tests/Blockchain/BlockChainTest.cs 98.53% <100%> (ø) ⬆️
Libplanet/Store/LiteDBStore.cs 89.87% <100%> (+0.62%) ⬆️
Libplanet.Tests/Net/SwarmTest.cs 99.09% <100%> (+1.2%) ⬆️
Libplanet/Net/Protocols/KademliaProtocol.cs 60.86% <0%> (+0.86%) ⬆️

@earlbread earlbread merged commit 6f59615 into planetarium:master Sep 20, 2019
@earlbread earlbread deleted the litedb-memory branch September 20, 2019 05:07
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.

4 participants