File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,12 @@ func (device *Device) CheckSDCard() (bool, error) {
37
37
return sdCardInserted .CheckSdcard .Inserted , nil
38
38
}
39
39
40
- // InsertRemoveSDCard sends a command to the device to insert of remove the sd card based on the workflow state .
41
- func (device * Device ) InsertRemoveSDCard ( action messages. InsertRemoveSDCardRequest_SDCardAction ) error {
40
+ // InsertSDCard sends a command to the device to prompt to insert the sd card.
41
+ func (device * Device ) InsertSDCard ( ) error {
42
42
request := & messages.Request {
43
43
Request : & messages.Request_InsertRemoveSdcard {
44
44
InsertRemoveSdcard : & messages.InsertRemoveSDCardRequest {
45
- Action : action ,
45
+ Action : messages . InsertRemoveSDCardRequest_INSERT_CARD ,
46
46
},
47
47
},
48
48
}
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ package firmware
17
17
import (
18
18
"testing"
19
19
20
- "github.com/BitBoxSwiss/bitbox02-api-go/api/firmware/messages"
21
20
"github.com/stretchr/testify/require"
22
21
)
23
22
@@ -31,12 +30,9 @@ func TestSimulatorCheckSDCard(t *testing.T) {
31
30
})
32
31
}
33
32
34
- func TestSimutorInsertRemoveSDCard (t * testing.T ) {
33
+ func TestSimutorInsertSDCard (t * testing.T ) {
35
34
testSimulatorsAfterPairing (t , func (t * testing.T , device * Device ) {
36
35
t .Helper ()
37
- require .NoError (t ,
38
- device .InsertRemoveSDCard (messages .InsertRemoveSDCardRequest_INSERT_CARD ))
39
- require .NoError (t ,
40
- device .InsertRemoveSDCard (messages .InsertRemoveSDCardRequest_REMOVE_CARD ))
36
+ require .NoError (t , device .InsertSDCard ())
41
37
})
42
38
}
You can’t perform that action at this time.
0 commit comments