@@ -33,12 +33,12 @@ func TestDaemonCompileOptions(t *testing.T) {
33
33
env , cli := createEnvForDaemon (t )
34
34
defer env .CleanUp ()
35
35
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 ) {
38
38
fmt .Printf ("INIT> %v\n " , ir .GetMessage ())
39
39
}))
40
40
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 )
42
42
require .NoError (t , err )
43
43
for {
44
44
msg , err := plInst .Recv ()
@@ -56,13 +56,13 @@ func TestDaemonCompileOptions(t *testing.T) {
56
56
require .NoError (t , err )
57
57
58
58
// 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 ) {
60
60
fmt .Printf ("INIT> %v\n " , ir .GetMessage ())
61
61
}))
62
62
63
63
// Build sketch (with errors)
64
64
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 ())
66
66
require .NoError (t , err )
67
67
for {
68
68
msg , err := compile .Recv ()
@@ -83,7 +83,7 @@ func TestDaemonCompileOptions(t *testing.T) {
83
83
}
84
84
85
85
// 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 ())
87
87
require .NoError (t , err )
88
88
for {
89
89
msg , err := compile .Recv ()
0 commit comments