Disable job manager in instrumentation tests by default.

This commit is contained in:
Clark
2024-03-04 10:42:19 -05:00
committed by Alex Hart
parent 6d54ae5f3d
commit fc9d94701c
3 changed files with 21 additions and 2 deletions

View File

@@ -35,4 +35,18 @@ class SignalInstrumentationApplicationContext : ApplicationContext() {
LogDatabase.getInstance(this).logs.trimToSize()
}
}
override fun beginJobLoop() = Unit
/**
* Some of the jobs can interfere with some of the instrumentation tests.
*
* For example, we may try to create a release channel recipient while doing
* an import/backup test.
*
* This can be used to start the job loop if needed for tests that rely on it.
*/
fun beginJobLoopForTests() {
super.beginJobLoop()
}
}