@@ -33,12 +33,12 @@ func TestDaemonCompileOptions(t *testing.T) {
3333 env , cli := createEnvForDaemon (t )
3434 defer env .CleanUp ()
3535
36- inst := cli .Create ()
37- require .NoError (t , inst .Init ("" , "" , func (ir * commands.InitResponse ) {
36+ grpcInst := cli .Create ()
37+ require .NoError (t , grpcInst .Init ("" , "" , func (ir * commands.InitResponse ) {
3838 fmt .Printf ("INIT> %v\n " , ir .GetMessage ())
3939 }))
4040
41- plInst , err := inst .PlatformInstall (context .Background (), "arduino" , "avr" , "1.8.5" , true )
41+ plInst , err := grpcInst .PlatformInstall (context .Background (), "arduino" , "avr" , "1.8.5" , true )
4242 require .NoError (t , err )
4343 for {
4444 msg , err := plInst .Recv ()
@@ -56,13 +56,13 @@ func TestDaemonCompileOptions(t *testing.T) {
5656 require .NoError (t , err )
5757
5858 // Re-init instance to update changes
59- require .NoError (t , inst .Init ("" , "" , func (ir * commands.InitResponse ) {
59+ require .NoError (t , grpcInst .Init ("" , "" , func (ir * commands.InitResponse ) {
6060 fmt .Printf ("INIT> %v\n " , ir .GetMessage ())
6161 }))
6262
6363 // Build sketch (with errors)
6464 sk := paths .New ("testdata" , "bare_minimum" )
65- compile , err := inst .Compile (context .Background (), "arduino:avr:uno:some_menu=bad" , sk .String ())
65+ compile , err := grpcInst .Compile (context .Background (), "arduino:avr:uno:some_menu=bad" , sk .String ())
6666 require .NoError (t , err )
6767 for {
6868 msg , err := compile .Recv ()
@@ -83,7 +83,7 @@ func TestDaemonCompileOptions(t *testing.T) {
8383 }
8484
8585 // Build sketch (without errors)
86- compile , err = inst .Compile (context .Background (), "arduino:avr:uno:some_menu=good" , sk .String ())
86+ compile , err = grpcInst .Compile (context .Background (), "arduino:avr:uno:some_menu=good" , sk .String ())
8787 require .NoError (t , err )
8888 for {
8989 msg , err := compile .Recv ()
0 commit comments