diff --git a/platforms/sphero/bb8/helpers_test.go b/platforms/sphero/bb8/helpers_test.go index d194f7454..5a3e99404 100644 --- a/platforms/sphero/bb8/helpers_test.go +++ b/platforms/sphero/bb8/helpers_test.go @@ -9,21 +9,23 @@ import ( var _ ble.BLEConnector = (*bleTestClientAdaptor)(nil) type bleTestClientAdaptor struct { - name string - address string - mtx sync.Mutex + name string + address string + mtx sync.Mutex + withoutReponses bool testReadCharacteristic func(string) ([]byte, error) testWriteCharacteristic func(string, []byte) error } -func (t *bleTestClientAdaptor) Connect() (err error) { return } -func (t *bleTestClientAdaptor) Reconnect() (err error) { return } -func (t *bleTestClientAdaptor) Disconnect() (err error) { return } -func (t *bleTestClientAdaptor) Finalize() (err error) { return } -func (t *bleTestClientAdaptor) Name() string { return t.name } -func (t *bleTestClientAdaptor) SetName(n string) { t.name = n } -func (t *bleTestClientAdaptor) Address() string { return t.address } +func (t *bleTestClientAdaptor) Connect() (err error) { return } +func (t *bleTestClientAdaptor) Reconnect() (err error) { return } +func (t *bleTestClientAdaptor) Disconnect() (err error) { return } +func (t *bleTestClientAdaptor) Finalize() (err error) { return } +func (t *bleTestClientAdaptor) Name() string { return t.name } +func (t *bleTestClientAdaptor) SetName(n string) { t.name = n } +func (t *bleTestClientAdaptor) Address() string { return t.address } +func (t *bleTestClientAdaptor) WithoutReponses(use bool) { t.withoutReponses = use } func (t *bleTestClientAdaptor) ReadCharacteristic(cUUID string) (data []byte, err error) { t.mtx.Lock()