mirror of
https://github.com/gradle/actions.git
synced 2025-08-19 07:21:28 +08:00
Adapt tests to future new Build Scan publication message (#708)
Similar to https://github.com/gradle/actions/pull/651, a new Build Scan publication message will be introduced in the next Develocity Gradle plugin. This PR just adapts the test.
This commit is contained in:
parent
017a9effdb
commit
70964b4c8c
@ -355,7 +355,7 @@ class TestDevelocityInjection extends BaseInitScriptTest {
|
||||
}
|
||||
|
||||
void outputContainsBuildScanUrl(BuildResult result) {
|
||||
def opt = ['Publishing build scan...', 'Publishing Build Scan...'].stream()
|
||||
def opt = ['Publishing build scan...', 'Publishing Build Scan...', 'Publishing Build Scan to Develocity...'].stream()
|
||||
.filter { result.output.contains("${it}\n${mockScansServer.address}s/$PUBLIC_BUILD_SCAN_ID") }.findFirst()
|
||||
assert opt.isPresent()
|
||||
def message = opt.get()
|
||||
|
Loading…
x
Reference in New Issue
Block a user