Skip to content

Commit

Permalink
Allow Tests to Not Report Slow EDT Operations
Browse files Browse the repository at this point in the history
Android Studio project is experiencing flakiness in tests due to ExecutionTestCase:

```
      assertEquals("No ignored errors should happen during execution tests", 0, errorLoggingHappened);
```
  • Loading branch information
alonalbert committed Oct 17, 2024
1 parent 59fb205 commit 1711a84
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,9 @@ private fun reportSlowEdtOperation(action: Any,
operationName: String,
currentEDTPerformMillis: Long,
edtTraces: List<Throwable>?) {
if (application.isUnitTestMode) {
return
}
var edtTraces1 = edtTraces
val throwable: Throwable = PluginException.createByClass(
elapsedReport(currentEDTPerformMillis, true, operationName) + REVISE_AUT_MSG_SUFFIX, null, action.javaClass)
Expand Down

0 comments on commit 1711a84

Please sign in to comment.