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

v1.30
Brad House 5 months ago
parent cc10c6e4b5
commit a13f2aeac8
  1. 5
      test/ares-test.cc

5
test/ares-test.cc vendored

@ -763,6 +763,11 @@ MockChannelOptsTest::MockChannelOptsTest(int count,
optmask |= ARES_OPT_FLAGS; 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_EQ(ARES_SUCCESS, ares_init_options(&channel_, &opts, optmask));
EXPECT_NE(nullptr, channel_); EXPECT_NE(nullptr, channel_);

Loading…
Cancel
Save