From cd8f8223a23c718a40b0c0b0dc48e64374499efb Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 27 Mar 2024 19:10:56 +0000 Subject: [PATCH] Isolate tests from environment variables on GitHub Actions --- .../ge/conventions/gradle/BuildScanConventionsTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/io/spring/ge/conventions/gradle/BuildScanConventionsTests.java b/src/test/java/io/spring/ge/conventions/gradle/BuildScanConventionsTests.java index 55aa810..47b4b7d 100644 --- a/src/test/java/io/spring/ge/conventions/gradle/BuildScanConventionsTests.java +++ b/src/test/java/io/spring/ge/conventions/gradle/BuildScanConventionsTests.java @@ -135,7 +135,7 @@ void whenGitHubActionsEnvVarsArePresentThenBuildScanHasACiBuildLinkToIt() { @Test void whenNoCiIndicatorsArePresentThenBuildScanIsTaggedWithLocalNotCi() { - new BuildScanConventions(this.processRunner).execute(this.buildScan); + new BuildScanConventions(this.processRunner, Collections.emptyMap()).execute(this.buildScan); assertThat(this.buildScan.tags).contains("Local").doesNotContain("CI"); } @@ -195,7 +195,7 @@ void whenGitStatusIsDirtyThenBuildScanIsTaggedDirtyAndHasGitStatusCustomValue() @Test void whenBuildingLocallyThenBackgroundUploadIsEnabled() { - new BuildScanConventions(this.processRunner).execute(this.buildScan); + new BuildScanConventions(this.processRunner, Collections.emptyMap()).execute(this.buildScan); assertThat(this.buildScan.uploadInBackground).isTrue(); }