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

Commit b69f3e3b 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

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



Change-Id: I61f2489c5af379f676f8f7c67062ca2321bc36ab
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents d43a06f5 7430ef60
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());