Skip to content

Commit 6e0d7d9

Browse files
committedJun 2, 2020
Fix runtime branch test
1 parent f49244f commit 6e0d7d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/test/kotlin/org/jetbrains/kotlin/jupyter/test/configTests.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ class ConfigTest {
1111
fun testBranch() {
1212
val branch = runtimeProperties.currentBranch
1313
log.debug("Runtime git branch is: $branch")
14-
assertEquals(-1, branch.indexOf('/'), "Branch name should be simple")
14+
15+
if (!branch.matches(Regex("pull/[1-9][0-9]*")))
16+
assertEquals(-1, branch.indexOf('/'), "Branch name should be simple")
17+
1518
assertTrue(branch.isNotBlank(), "Branch name shouldn't be blank")
1619
}
1720

0 commit comments

Comments
 (0)