-
Notifications
You must be signed in to change notification settings - Fork 328
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
[Test] Restart the database using three modes #406
[Test] Restart the database using three modes #406
Conversation
Codecov Report
@@ Coverage Diff @@
## master #406 +/- ##
==========================================
+ Coverage 62.39% 63.78% +1.39%
==========================================
Files 31 31
Lines 5246 5247 +1
==========================================
+ Hits 3273 3347 +74
+ Misses 1688 1604 -84
- Partials 285 296 +11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments!
db_test.go
Outdated
opt.EntryIdxMode = HintKeyValAndRAMIdxMode | ||
opt.SegmentSize = 8 * 1024 | ||
|
||
withDBOption(t, opt, func(t *testing.T, db *DB) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can recall that @bigboss2063 refacted the code which runs test case with customized database. Could you help also refactor this part of code when you have time? For more context and code style you can refer this artcle. Thanks!https://mp.weixin.qq.com/s/w8YaLU0b3bEzUXdrxezodQ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this is the related PR link! #375
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
merge_test.go
Outdated
"sync" | ||
"testing" | ||
"time" | ||
|
||
"github.com/stretchr/testify/require" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why only added dependency in this file? Is that expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know, maybe my editor did it, I'll check it out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!Thanks for this great contribution!
No description provided.