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

Commit f5907420 authored by Mike Yu's avatar Mike Yu Committed by Automerger Merge Worker
Browse files

Test: Make the test TestEarlyDataFlag more robust against flag reset am:...

Test: Make the test TestEarlyDataFlag more robust against flag reset am: 6fd6fd2a am: ebe267c7 am: 7430ef60 am: b69f3e3b

Original change: https://android-review.googlesource.com/c/platform/packages/modules/DnsResolver/+/2237974



Change-Id: I545afb63ce69564fa061dcfdb4e84467b7d19366
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 83540a73 b69f3e3b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1108,6 +1108,11 @@ TEST_F(PrivateDnsDohTest, TestEarlyDataFlag) {
        SCOPED_TRACE(fmt::format("flag: {}", flag));
        ScopedSystemProperties sp1(kDohSessionResumptionFlag, flag);
        ScopedSystemProperties sp2(kDohEarlyDataFlag, flag);

        // As each loop takes around 2 seconds, it's possible the device_config flags are reset
        // in the middle of the test. Add another ScopedSystemProperties for "doh" to make the
        // test more robust.
        ScopedSystemProperties sp3(kDohFlag, "1");
        resetNetwork();

        ASSERT_TRUE(doh.stopServer());