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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy