mirror of
https://github.com/gradle/actions.git
synced 2025-08-18 14:51:28 +08:00
Adapt tests to new Build Scan publication message in Develocity Gradle plugin 4.0.2
This commit is contained in:
parent
5c3326b6e6
commit
8470d8529f
@ -355,8 +355,10 @@ class TestDevelocityInjection extends BaseInitScriptTest {
|
||||
}
|
||||
|
||||
void outputContainsBuildScanUrl(BuildResult result) {
|
||||
def message = "Publishing build scan...\n${mockScansServer.address}s/$PUBLIC_BUILD_SCAN_ID"
|
||||
assert result.output.contains(message)
|
||||
def opt = ['Publishing build scan...', 'Publishing Build Scan...'].stream()
|
||||
.filter { result.output.contains("${it}\n${mockScansServer.address}s/$PUBLIC_BUILD_SCAN_ID") }.findFirst()
|
||||
assert opt.isPresent()
|
||||
def message = opt.get()
|
||||
assert 1 == result.output.count(message)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user