Skip to content

Commit

Permalink
Isolate tests from environment variables on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Mar 27, 2024
1 parent fbf76a7 commit cd8f822
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit cd8f822

Please sign in to comment.