Skip to content

Commit

Permalink
Remove assert as it doesn't always work
Browse files Browse the repository at this point in the history
  • Loading branch information
bentrengrove committed Aug 26, 2022
1 parent 5df6acf commit 3f3af30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ internal fun denyPermissionInDialog(
else -> "Don’t allow"
}
val permissionButton = UiDevice.getInstance(instrumentation).findPermissionButton(text)
assert(permissionButton.clickForPermission(instrumentation)) { "Could not deny permission" }
permissionButton.clickForPermission(instrumentation)
}

internal fun doNotAskAgainPermissionInDialog(
Expand Down

0 comments on commit 3f3af30

Please sign in to comment.