1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-26 13:48:49 +08:00

aio: adjust test timeouts

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2017-04-21 11:03:28 +02:00
parent 73a85aecdf
commit d27ad850f3
2 changed files with 7 additions and 7 deletions

View File

@ -56,7 +56,7 @@ func TestAnalogSensorDriverStart(t *testing.T) {
select {
case <-sem:
case <-time.After(10 * time.Second):
case <-time.After(1 * time.Second):
t.Errorf("AnalogSensor Event \"Data\" was not published")
}
@ -74,7 +74,7 @@ func TestAnalogSensorDriverStart(t *testing.T) {
select {
case <-sem:
case <-time.After(10 * time.Second):
case <-time.After(1 * time.Second):
t.Errorf("AnalogSensor Event \"Error\" was not published")
}
@ -93,7 +93,7 @@ func TestAnalogSensorDriverStart(t *testing.T) {
select {
case <-sem:
t.Errorf("AnalogSensor Event should not published")
case <-time.After(100 * time.Millisecond):
case <-time.After(1 * time.Second):
}
}
@ -107,7 +107,7 @@ func TestAnalogSensorDriverHalt(t *testing.T) {
gobottest.Assert(t, d.Halt(), nil)
select {
case <-done:
case <-time.After(time.Millisecond):
case <-time.After(100 * time.Millisecond):
t.Errorf("AnalogSensor was not halted")
}
}

View File

@ -38,7 +38,7 @@ func TestGroveTempSensorPublishesTemperatureInCelsius(t *testing.T) {
select {
case <-sem:
case <-time.After(10 * time.Second):
case <-time.After(1 * time.Second):
t.Errorf("Grove Temperature Sensor Event \"Data\" was not published")
}
@ -66,7 +66,7 @@ func TestGroveTempSensorPublishesError(t *testing.T) {
select {
case <-sem:
case <-time.After(time.Second):
case <-time.After(1 * time.Second):
t.Errorf("Grove Temperature Sensor Event \"Error\" was not published")
}
}
@ -81,7 +81,7 @@ func TestGroveTempSensorHalt(t *testing.T) {
gobottest.Assert(t, d.Halt(), nil)
select {
case <-done:
case <-time.After(time.Millisecond):
case <-time.After(100 * time.Millisecond):
t.Errorf("Grove Temperature Sensor was not halted")
}
}