@@ -80,7 +80,7 @@ func TestPrintProto(t *testing.T) {
8080 for _ , tt := range tests {
8181 t .Run (tt .name , func (t * testing.T ) {
8282 buf := new (bytes.Buffer )
83- root := NewRootCmd (fakeruntime.FakeExecer {ExpectOS : "linux" }, server .NewFakeHTTPServer ())
83+ root := NewRootCmd (& fakeruntime.FakeExecer {ExpectOS : "linux" }, server .NewFakeHTTPServer ())
8484 root .SetOut (buf )
8585 root .SetArgs (append (tt .args , "--dry-run" ))
8686 err := root .Execute ()
@@ -182,7 +182,7 @@ func TestFrontEndHandlerWithLocation(t *testing.T) {
182182
183183 t .Run ("download atest" , func (t * testing.T ) {
184184 opt := & serverOption {
185- execer : fakeruntime.FakeExecer {
185+ execer : & fakeruntime.FakeExecer {
186186 ExpectOS : "linux" ,
187187 ExpectLookPathError : errors .New ("fake" ),
188188 },
@@ -199,7 +199,7 @@ func TestFrontEndHandlerWithLocation(t *testing.T) {
199199
200200 t .Run ("download atest, failed to read" , func (t * testing.T ) {
201201 opt := & serverOption {
202- execer : fakeruntime.FakeExecer {
202+ execer : & fakeruntime.FakeExecer {
203203 ExpectOS : "linux" ,
204204 },
205205 }
@@ -268,7 +268,7 @@ func TestOAuth(t *testing.T) {
268268 }}
269269 for i , tt := range tests {
270270 buf := new (bytes.Buffer )
271- root := NewRootCmd (fakeruntime.FakeExecer {ExpectOS : "linux" }, server .NewFakeHTTPServer ())
271+ root := NewRootCmd (& fakeruntime.FakeExecer {ExpectOS : "linux" }, server .NewFakeHTTPServer ())
272272 root .SetOut (buf )
273273 root .SetArgs (append (tt .args , "--dry-run" ))
274274 err := root .Execute ()
@@ -294,7 +294,7 @@ func TestStartPlugins(t *testing.T) {
294294 }
295295 rootCmd .SetOut (io .Discard )
296296 rootCmd .AddCommand (createServerCmd (
297- fakeruntime.FakeExecer {ExpectOS : "linux" , ExpectLookPathError : errors .New ("not-found" )},
297+ & fakeruntime.FakeExecer {ExpectOS : "linux" , ExpectLookPathError : errors .New ("not-found" )},
298298 server .NewFakeHTTPServer (),
299299 ))
300300
@@ -310,7 +310,7 @@ func TestStartPlugins(t *testing.T) {
310310 }
311311 rootCmd .SetOut (io .Discard )
312312 rootCmd .AddCommand (createServerCmd (
313- fakeruntime.FakeExecer {ExpectOS : "linux" , ExpectLookPathError : errors .New ("not-found" )},
313+ & fakeruntime.FakeExecer {ExpectOS : "linux" , ExpectLookPathError : errors .New ("not-found" )},
314314 httpServer ,
315315 ))
316316
0 commit comments