Skip to content

Commit

Permalink
core: update Pebble platform to simply return error
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Nov 7, 2016
1 parent 24fa687 commit 7189809
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions platforms/pebble/pebble_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ func (a *Adaptor) Name() string { return a.name }
func (a *Adaptor) SetName(n string) { a.name = n }

// Connect returns true if connection to pebble is established successfully
func (a *Adaptor) Connect() (errs []error) {
func (a *Adaptor) Connect() (err error) {
return
}

// Finalize returns true if connection to pebble is finalized successfully
func (a *Adaptor) Finalize() (errs []error) {
func (a *Adaptor) Finalize() (err error) {
return
}
4 changes: 2 additions & 2 deletions platforms/pebble/pebble_adaptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ func TestAdaptor(t *testing.T) {
}
func TestAdaptorConnect(t *testing.T) {
a := initTestAdaptor()
gobottest.Assert(t, len(a.Connect()), 0)
gobottest.Assert(t, a.Connect(), nil)
}

func TestAdaptorFinalize(t *testing.T) {
a := initTestAdaptor()
gobottest.Assert(t, len(a.Finalize()), 0)
gobottest.Assert(t, a.Finalize(), nil)
}
4 changes: 2 additions & 2 deletions platforms/pebble/pebble_driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ func initTestDriver() *Driver {

func TestDriverStart(t *testing.T) {
d := initTestDriver()
gobottest.Assert(t, len(d.Start()), 0)
gobottest.Assert(t, d.Start(), nil)
}

func TestDriverHalt(t *testing.T) {
d := initTestDriver()
gobottest.Assert(t, len(d.Halt()), 0)
gobottest.Assert(t, d.Halt(), nil)
}

func TestDriver(t *testing.T) {
Expand Down

0 comments on commit 7189809

Please sign in to comment.