mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Fix Leak canary test
This commit is contained in:
parent
0101dc4820
commit
6a6ba7d542
2 changed files with 10 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue