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

Commit a428ab93 authored by George Mount's avatar George Mount
Browse files

Address comments on LeakTest.

parent 46bb16c3
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -61,7 +61,11 @@ public class LeakTest extends ActivityInstrumentationTestCase2<TestActivity> {
                getActivity().setContentView(new FrameLayout(getActivity()));
            }
        });
        WeakReference<Object> canary = new WeakReference<Object>(new Object());
        while (canary.get() != null) {
            byte[] b = new byte[1024 * 1024];
            System.gc();
        }
        assertNull(mWeakReference.get());
    }