-
Notifications
You must be signed in to change notification settings - Fork 9
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/stable db tests #194
base: develop
Are you sure you want to change the base?
Test/stable db tests #194
Conversation
@MethodSource("validArgumentsProvider") | ||
void testValidCreation(String path, long bufferLimitsInBytes) { | ||
final Database database = Database.rocksDB(path, bufferLimitsInBytes); | ||
assertThat(database).isNotNull(); |
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.
Useless isNotNull test again.
assertThat(closed).isFalse(); | ||
db.close(); | ||
assertThat(closed).isTrue(); | ||
} |
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.
This test tests your implementation of Database interface. Useless again.
Arguments.of("/tmp", 0), | ||
Arguments.of("/tmp", Long.MAX_VALUE), | ||
Arguments.of("/tmp", Long.MIN_VALUE)); | ||
} |
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.
This likely won't work on windows.
Additionaly, RocksDB creates files. It's a good idea to clean up, i.e. remove the directories, created by RocksDB.
No description provided.