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

v1.29
Brad House 6 months ago
parent 630900b64f
commit b26e21008c
  1. 5
      test/ares-test.cc

5
test/ares-test.cc vendored

@ -757,6 +757,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