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

Commit 8fdac674 authored by Austin Tankiang's avatar Austin Tankiang
Browse files

Fix incorrect assert

The current assert will always succeed.

Bug: 407674989
Test: atest -c 'DocumentsUIGoogleTests:com.android.documentsui.services'
Flag: TEST_ONLY
Change-Id: Ieaa71f03ee3490e7b76b296de6375d8d35b0d650
parent b97d85e8
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -203,8 +203,8 @@ public abstract class AbstractCopyJobTest<T extends CopyJob> extends AbstractJob
        String copyPercentage = progressNotification.extras.getString(Notification.EXTRA_SUB_TEXT);

        // the percentage representation should not be NaN.
        assertNotEquals(copyPercentage.equals(NumberFormat.getPercentInstance().format(Double.NaN)),
                "Percentage representation should not be NaN.");
        assertNotEquals("Percentage representation should not be NaN.",
                NumberFormat.getPercentInstance().format(Double.NaN), copyPercentage);

        mDocs.assertChildCount(mDestRoot, 1);
        mDocs.assertHasDirectory(mDestRoot, "emptyDir");
@@ -221,8 +221,8 @@ public abstract class AbstractCopyJobTest<T extends CopyJob> extends AbstractJob
        String copyPercentage = progressNotification.extras.getString(Notification.EXTRA_SUB_TEXT);

        // the percentage representation should not be NaN.
        assertNotEquals(copyPercentage.equals(NumberFormat.getPercentInstance().format(Double.NaN)),
                "Percentage representation should not be NaN.");
        assertNotEquals("Percentage representation should not be NaN.",
                NumberFormat.getPercentInstance().format(Double.NaN), copyPercentage);

        mDocs.assertChildCount(mDestRoot, 1);
        mDocs.assertHasDirectory(mDestRoot, "emptyDir");