@@ -80,8 +80,9 @@ func TestRebuildOnDotEnvWithExternalNetwork(t *testing.T) {
80
80
assert .Assert (t , ! strings .Contains (res .Combined (), projectName ), res .Combined ())
81
81
82
82
t .Log ("create a dotenv file that will be used to trigger the rebuild" )
83
- os .WriteFile (dotEnvFilepath , []byte ("HELLO=WORLD" ), 0666 )
84
- _ , err := os .ReadFile (dotEnvFilepath )
83
+ err := os .WriteFile (dotEnvFilepath , []byte ("HELLO=WORLD" ), 0o666 )
84
+ assert .NilError (t , err )
85
+ _ , err = os .ReadFile (dotEnvFilepath )
85
86
assert .NilError (t , err )
86
87
87
88
// TODO: refactor this duplicated code into frameworks? Maybe?
@@ -114,7 +115,8 @@ func TestRebuildOnDotEnvWithExternalNetwork(t *testing.T) {
114
115
assert .Equal (t , pn .Stdout (), n .Stdout ())
115
116
116
117
t .Log ("create a dotenv file that will be used to trigger the rebuild" )
117
- os .WriteFile (dotEnvFilepath , []byte ("HELLO=WORLD\n TEST=REBUILD" ), 0666 )
118
+ err = os .WriteFile (dotEnvFilepath , []byte ("HELLO=WORLD\n TEST=REBUILD" ), 0o666 )
119
+ assert .NilError (t , err )
118
120
_ , err = os .ReadFile (dotEnvFilepath )
119
121
assert .NilError (t , err )
120
122
0 commit comments