Skip to content

Commit

Permalink
Change test delay to 50ms
Browse files Browse the repository at this point in the history
  • Loading branch information
deadprogram committed Feb 25, 2016
1 parent 2c5f1bc commit c52a14d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platforms/gpio/button_driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/hybridgroup/gobot"
)

const BUTTON_TEST_DELAY = 30
const BUTTON_TEST_DELAY = 50

func initTestButtonDriver() *ButtonDriver {
return NewButtonDriver(newGpioTestAdaptor("adaptor"), "bot", "1")
Expand All @@ -28,7 +28,7 @@ func TestButtonDriver(t *testing.T) {
gobot.Assert(t, d.Connection().Name(), "adaptor")

d = NewButtonDriver(newGpioTestAdaptor("adaptor"), "bot", "1", 30*time.Second)
gobot.Assert(t, d.interval, BUTTON_TEST_DELAY * time.Second)
gobot.Assert(t, d.interval, 30 * time.Second)
}

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

0 comments on commit c52a14d

Please sign in to comment.