mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
fix: Shadow err in TestProvision_Cancel to fix test race (#3579)
Fixes #3574
This commit is contained in:
committed by
GitHub
parent
4ba3573632
commit
3fdae47b87
@ -100,7 +100,7 @@ func TestProvision_Cancel(t *testing.T) {
|
||||
|
||||
// Example: exec /path/to/terrafork_fake_cancel.sh 1.2.1 apply "$@"
|
||||
content := fmt.Sprintf("#!/bin/sh\nexec %q %s %s \"$@\"\n", fakeBin, terraform.TerraformVersion.String(), tt.mode)
|
||||
err = os.WriteFile(binPath, []byte(content), 0o755) //#nosec
|
||||
err := os.WriteFile(binPath, []byte(content), 0o755) //#nosec
|
||||
require.NoError(t, err)
|
||||
|
||||
ctx, api := setupProvisioner(t, &provisionerServeOptions{
|
||||
|
Reference in New Issue
Block a user