From 3c4a4f6e0d03185ce85221b9cd2a35e036355bff Mon Sep 17 00:00:00 2001 From: deadprogram Date: Thu, 11 May 2017 16:03:53 +0200 Subject: [PATCH] firmata: adjust client test timeout values Signed-off-by: deadprogram --- platforms/firmata/client/client_test.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/platforms/firmata/client/client_test.go b/platforms/firmata/client/client_test.go index bd84c9c0..9b17c3de 100644 --- a/platforms/firmata/client/client_test.go +++ b/platforms/firmata/client/client_test.go @@ -137,7 +137,7 @@ func TestProcessProtocolVersion(t *testing.T) { select { case <-sem: - case <-time.After(10 * time.Millisecond): + case <-time.After(20 * time.Millisecond): t.Errorf("ProtocolVersion was not published") } } @@ -157,7 +157,7 @@ func TestProcessAnalogRead0(t *testing.T) { select { case <-sem: - case <-time.After(10 * time.Millisecond): + case <-time.After(20 * time.Millisecond): t.Errorf("AnalogRead0 was not published") } } @@ -177,7 +177,7 @@ func TestProcessAnalogRead1(t *testing.T) { select { case <-sem: - case <-time.After(10 * time.Millisecond): + case <-time.After(20 * time.Millisecond): t.Errorf("AnalogRead1 was not published") } } @@ -198,7 +198,7 @@ func TestProcessDigitalRead2(t *testing.T) { select { case <-sem: - case <-time.After(10 * time.Millisecond): + case <-time.After(20 * time.Millisecond): t.Errorf("DigitalRead2 was not published") } } @@ -219,7 +219,7 @@ func TestProcessDigitalRead4(t *testing.T) { select { case <-sem: - case <-time.After(10 * time.Millisecond): + case <-time.After(20 * time.Millisecond): t.Errorf("DigitalRead4 was not published") } } @@ -264,7 +264,7 @@ func TestProcessPinState13(t *testing.T) { select { case <-sem: - case <-time.After(10 * time.Millisecond): + case <-time.After(20 * time.Millisecond): t.Errorf("PinState13 was not published") } } @@ -288,7 +288,7 @@ func TestProcessI2cReply(t *testing.T) { select { case <-sem: - case <-time.After(10 * time.Millisecond): + case <-time.After(20 * time.Millisecond): t.Errorf("I2cReply was not published") } } @@ -310,7 +310,7 @@ func TestProcessFirmwareQuery(t *testing.T) { select { case <-sem: - case <-time.After(10 * time.Millisecond): + case <-time.After(20 * time.Millisecond): t.Errorf("FirmwareQuery was not published") } } @@ -330,7 +330,7 @@ func TestProcessStringData(t *testing.T) { select { case <-sem: - case <-time.After(100 * time.Millisecond): + case <-time.After(20 * time.Millisecond): t.Errorf("StringData was not published") } }