diff --git a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/Notifications.kt b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/Notifications.kt index 82cffc2072f8..ef1b505c8ccf 100644 --- a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/Notifications.kt +++ b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/Notifications.kt @@ -17,11 +17,11 @@ interface Notification { @Remote("com.intellij.notification.ActionCenter") interface ActionCenter { - fun getNotifications(project: Project): List + fun getNotifications(project: Project?): List } -fun Driver.getNotifications(project: Project? = null): Collection { +fun Driver.getNotifications(project: Project? = singleProject()): Collection { return withContext(OnDispatcher.EDT) { - utility().getNotifications(project ?: singleProject()) + utility().getNotifications(project) } } \ No newline at end of file