diff --git a/plugins/git4idea/tests/git4idea/branch/GitBranchWorkerTest.kt b/plugins/git4idea/tests/git4idea/branch/GitBranchWorkerTest.kt
index 3dfaffa161c3..b3e1fc513594 100644
--- a/plugins/git4idea/tests/git4idea/branch/GitBranchWorkerTest.kt
+++ b/plugins/git4idea/tests/git4idea/branch/GitBranchWorkerTest.kt
@@ -234,7 +234,7 @@ class GitBranchWorkerTest : GitPlatformTest() {
assertCurrentBranch("master")
assertCurrentRevision("master")
- assertSuccessfulNotification("Revision not found in project, community and contrib")
+ assertErrorNotification("Couldn't checkout unknown_ref", "Revision not found in project, community and contrib")
}
fun test_checkout_revision_checkout_ref_with_partial_success() {
@@ -627,8 +627,8 @@ class GitBranchWorkerTest : GitPlatformTest() {
mergeBranch("master2", TestUiHandler())
- assertSuccessfulNotification("Merged " + bcode("master2") + " to " + bcode("master") + "
Delete master2",
- myVcsNotifier.lastNotification.content)
+ assertSuccessfulNotification("Merged ${bcode("master2")} to ${bcode("master")}
" +
+ "Delete master2")
assertFile(myUltimate, "branch_file.txt", "branch content")
assertFile(myCommunity, "branch_file.txt", "branch content")
assertFile(myContrib, "branch_file.txt", "branch content")