Skip to content

Commit 3fdae47

Browse files
authored
fix: Shadow err in TestProvision_Cancel to fix test race (#3579)
Fixes #3574
1 parent 4ba3573 commit 3fdae47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provisioner/terraform/provision_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func TestProvision_Cancel(t *testing.T) {
100100

101101
// Example: exec /path/to/terrafork_fake_cancel.sh 1.2.1 apply "$@"
102102
content := fmt.Sprintf("#!/bin/sh\nexec %q %s %s \"$@\"\n", fakeBin, terraform.TerraformVersion.String(), tt.mode)
103-
err = os.WriteFile(binPath, []byte(content), 0o755) //#nosec
103+
err := os.WriteFile(binPath, []byte(content), 0o755) //#nosec
104104
require.NoError(t, err)
105105

106106
ctx, api := setupProvisioner(t, &provisionerServeOptions{

0 commit comments

Comments
 (0)