Skip to content

Commit

Permalink
Code consistency changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahFrench committed Jan 13, 2025
1 parent 397b3ea commit a734e1e
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/backend/local/test.go
Original file line number Diff line number Diff line change
@@ -87,7 +87,7 @@ func (runner *TestSuiteRunner) Stop() {
}

func (runner *TestSuiteRunner) IsStopped() bool {
return runner.Stopped == true
return runner.Stopped
}

func (runner *TestSuiteRunner) Cancel() {
2 changes: 1 addition & 1 deletion internal/cloud/test.go
Original file line number Diff line number Diff line change
@@ -110,7 +110,7 @@ func (runner *TestSuiteRunner) Stop() {
}

func (runner *TestSuiteRunner) IsStopped() bool {
return runner.Stopped == true
return runner.Stopped
}

func (runner *TestSuiteRunner) Cancel() {
2 changes: 1 addition & 1 deletion internal/command/junit/junit.go
Original file line number Diff line number Diff line change
@@ -270,7 +270,7 @@ func getSkipDetails(runIndex int, file *moduletest.File, suiteStopped bool) (str
// Test suite experienced an interrupt
// This block only handles graceful Stop interrupts, as Cancel interrupts will prevent a JUnit file being produced at all
message := "Test skipped due to an interrupt"
body := fmt.Sprintf("Terraform received an interrupt and stopped gracefully. This caused all remaining testcases to be skipped")
body := "Terraform received an interrupt and stopped gracefully. This caused all remaining testcases to be skipped"

return message, body
}

0 comments on commit a734e1e

Please sign in to comment.