Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a35e679 authored by Mike Yu's avatar Mike Yu
Browse files

Fix ResolverTest.ConnectTlsServerTimeout broken

The test is not compatible with a newer DnsResolver which gets
the flag from an Experiments class rather than from system properties.

Bug: 175900450
Test: ResolverTest.ConnectTlsServerTimeout
Ignore-AOSP-First: This test in internal master has the fix already
Change-Id: Ie856b1fdbd7069cae1c78989813e96073b69cd01
Merged-In: Iabfc14ad6b525e4cdc26f9fee83742acaee881e0
parent a37a359a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4121,6 +4121,9 @@ TEST_F(ResolverTest, ConnectTlsServerTimeout) {
    // The resolver will adjust the timeout value to 1000ms since the value is too small.
    ScopedSystemProperties scopedSystemProperties(kDotConnectTimeoutMsFlag, "100");

    // Re-setup test network to make experiment flag take effect.
    resetNetwork();

    // Set up resolver to opportunistic mode with the default configuration.
    const ResolverParamsParcel parcel = DnsResponderClient::GetDefaultResolverParamsParcel();
    ASSERT_TRUE(mDnsClient.SetResolversFromParcel(parcel));