We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 660299a commit c46683cCopy full SHA for c46683c
src/libmongoc/tests/test-mongoc-gridfs.c
@@ -572,7 +572,7 @@ test_create_from_stream (void)
572
573
mongoc_gridfs_drop (gridfs, &error);
574
575
- start = ((int64_t) time (NULL)) * 1000;
+ start = _mongoc_get_real_time_ms ();
576
stream =
577
mongoc_stream_file_new_for_path (BINARY_DIR "/gridfs.dat", O_RDONLY, 0);
578
ASSERT_OR_PRINT_ERRNO (stream, errno);
@@ -582,7 +582,7 @@ test_create_from_stream (void)
582
ASSERT (file);
583
ASSERT (mongoc_gridfs_file_save (file));
584
585
- now = ((int64_t) time (NULL)) * 1000;
+ now = _mongoc_get_real_time_ms ();
586
587
filter = tmp_bson (NULL);
588
BSON_APPEND_VALUE (filter, "_id", mongoc_gridfs_file_get_id (file));
0 commit comments