Skip to content

Commit 0728630

Browse files
committed
timeouts are milliseconds in scanner tests
1 parent ddde16e commit 0728630

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test-mongoc-async.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#undef MONGOC_LOG_DOMAIN
1010
#define MONGOC_LOG_DOMAIN "async-test"
1111

12-
#define TIMEOUT 10000
12+
#define TIMEOUT 10000 /* milliseconds */
1313
#define NSERVERS 10
1414

1515
#define TRUST_DIR "tests/trust_dir"
@@ -126,7 +126,7 @@ test_ismaster_impl (bool with_ssl)
126126
TIMEOUT);
127127
}
128128

129-
while (mongoc_async_run (async, TIMEOUT * 1000 * 10)) {
129+
while (mongoc_async_run (async, TIMEOUT)) {
130130
}
131131

132132
for (i = 0; i < NSERVERS; i++) {

tests/test-mongoc-topology-scanner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#undef MONGOC_LOG_DOMAIN
99
#define MONGOC_LOG_DOMAIN "topology-scanner-test"
1010

11-
#define TIMEOUT 20000
11+
#define TIMEOUT 20000 /* milliseconds */
1212
#define NSERVERS 10
1313

1414
#define TRUST_DIR "tests/trust_dir"

0 commit comments

Comments
 (0)