Commit 320e3718 authored by Vitaly Arbuzov's avatar Vitaly Arbuzov
Browse files

Init monotime for unit tests

parent a51d3dc0
...@@ -6993,6 +6993,7 @@ int main(int argc, char **argv) { ...@@ -6993,6 +6993,7 @@ int main(int argc, char **argv) {
char config_from_stdin = 0; char config_from_stdin = 0;
#ifdef REDIS_TEST #ifdef REDIS_TEST
monotonicInit(); /* Required for dict tests, that are relying on monotime during dict rehashing. */
if (argc >= 3 && !strcasecmp(argv[1], "test")) { if (argc >= 3 && !strcasecmp(argv[1], "test")) {
int flags = 0; int flags = 0;
for (j = 3; j < argc; j++) { for (j = 3; j < argc; j++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment