tests: mockserver is local, shorten timeouts to make test cases run faster to use less CI resources

v1.23
Brad House 11 months ago
parent 78d1e7afbd
commit dc4c66dcca
  1. 4
      test/ares-test.cc

4
test/ares-test.cc vendored

@ -552,9 +552,9 @@ MockChannelOptsTest::MockChannelOptsTest(int count,
opts.tcp_port = server_.tcpport();
optmask |= ARES_OPT_TCP_PORT;
// If not already overridden, set short-ish timeouts.
if (!(optmask & (ARES_OPT_TIMEOUTMS|ARES_OPT_TIMEOUT))) {
opts.timeout = 1500;
// Reduce timeouts significantly to shorten test times.
opts.timeout = 250;
optmask |= ARES_OPT_TIMEOUTMS;
}
// If not already overridden, set 3 retries.

Loading…
Cancel
Save