tests: set ndots:1 as default, don't honor system config as it may skew results

pull/786/head
Brad House 8 months ago
parent 852a60a6ad
commit f05465e59b
  1. 5
      test/ares-test.cc

5
test/ares-test.cc vendored

@ -763,6 +763,11 @@ MockChannelOptsTest::MockChannelOptsTest(int count,
optmask |= ARES_OPT_FLAGS;
}
if (!(optmask & ARES_OPT_NDOTS)) {
opts.ndots = 1;
optmask |= ARES_OPT_NDOTS;
}
EXPECT_EQ(ARES_SUCCESS, ares_init_options(&channel_, &opts, optmask));
EXPECT_NE(nullptr, channel_);

Loading…
Cancel
Save