@@ -52,7 +52,8 @@ func TestFindDevcontainerJSON(t *testing.T) {
52
52
fs := memfs .New ()
53
53
err := fs .MkdirAll ("/workspace/.devcontainer" , 0o600 )
54
54
require .NoError (t , err )
55
- fs .Create ("/workspace/.devcontainer/devcontainer.json" )
55
+ _ , err = fs .Create ("/workspace/.devcontainer/devcontainer.json" )
56
+ require .NoError (t , err )
56
57
57
58
// when
58
59
devcontainerPath , devcontainerDir , err := findDevcontainerJSON (Options {
@@ -73,7 +74,8 @@ func TestFindDevcontainerJSON(t *testing.T) {
73
74
fs := memfs .New ()
74
75
err := fs .MkdirAll ("/workspace/experimental-devcontainer" , 0o600 )
75
76
require .NoError (t , err )
76
- fs .Create ("/workspace/experimental-devcontainer/devcontainer.json" )
77
+ _ , err = fs .Create ("/workspace/experimental-devcontainer/devcontainer.json" )
78
+ require .NoError (t , err )
77
79
78
80
// when
79
81
devcontainerPath , devcontainerDir , err := findDevcontainerJSON (Options {
@@ -95,7 +97,8 @@ func TestFindDevcontainerJSON(t *testing.T) {
95
97
fs := memfs .New ()
96
98
err := fs .MkdirAll ("/workspace/.devcontainer" , 0o600 )
97
99
require .NoError (t , err )
98
- fs .Create ("/workspace/.devcontainer/experimental.json" )
100
+ _ , err = fs .Create ("/workspace/.devcontainer/experimental.json" )
101
+ require .NoError (t , err )
99
102
100
103
// when
101
104
devcontainerPath , devcontainerDir , err := findDevcontainerJSON (Options {
@@ -117,7 +120,8 @@ func TestFindDevcontainerJSON(t *testing.T) {
117
120
fs := memfs .New ()
118
121
err := fs .MkdirAll ("/workspace" , 0o600 )
119
122
require .NoError (t , err )
120
- fs .Create ("/workspace/devcontainer.json" )
123
+ _ , err = fs .Create ("/workspace/devcontainer.json" )
124
+ require .NoError (t , err )
121
125
122
126
// when
123
127
devcontainerPath , devcontainerDir , err := findDevcontainerJSON (Options {
@@ -138,7 +142,8 @@ func TestFindDevcontainerJSON(t *testing.T) {
138
142
fs := memfs .New ()
139
143
err := fs .MkdirAll ("/workspace/.devcontainer/sample" , 0o600 )
140
144
require .NoError (t , err )
141
- fs .Create ("/workspace/.devcontainer/sample/devcontainer.json" )
145
+ _ , err = fs .Create ("/workspace/.devcontainer/sample/devcontainer.json" )
146
+ require .NoError (t , err )
142
147
143
148
// when
144
149
devcontainerPath , devcontainerDir , err := findDevcontainerJSON (Options {
0 commit comments