Fix Leak canary test

This commit is contained in:
maskara 2017-11-07 02:27:10 +05:30
parent 0101dc4820
commit 6a6ba7d542
2 changed files with 10 additions and 4 deletions

View file

@ -4,7 +4,8 @@ import com.squareup.leakcanary.RefWatcher;
// This class is automatically discovered by Robolectric
public class TestCommonsApplication extends CommonsApplication {
@Override protected RefWatcher setupLeakCanary() {
@Override
protected RefWatcher setupLeakCanary() {
// No leakcanary in unit tests.
return RefWatcher.DISABLED;
}