File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ import (
17
17
"go.jetpack.io/devbox/internal/shellgen"
18
18
)
19
19
20
- // update overwrites golden files with the new test results.
21
- var update = flag .Bool ("update" , false , "update the golden files with the test results" )
20
+ // updateFlag overwrites golden files with the new test results.
21
+ var updateFlag = flag .Bool ("update" , false , "update the golden files with the test results" )
22
22
23
23
func TestWriteDevboxShellrc (t * testing.T ) {
24
24
testdirs , err := filepath .Glob ("testdata/shellrc/*" )
@@ -83,7 +83,7 @@ func testWriteDevboxShellrc(t *testing.T, testdirs []string) {
83
83
// Overwrite the golden file if the -update flag was
84
84
// set, and then proceed normally. The test should
85
85
// always pass in this case.
86
- if * update {
86
+ if * updateFlag {
87
87
err = os .WriteFile (test .goldShellrcPath , gotShellrc , 0o666 )
88
88
if err != nil {
89
89
t .Error ("Error updating golden files:" , err )
You can’t perform that action at this time.
0 commit comments