Skip to content

Commit 14b24e4

Browse files
committed
[Unit test] Incremented the network discovery time (NT) for the
'testDiscoverDevicesTwoZigBeeDevice' test case. Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
1 parent e021ffa commit 14b24e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/src/test/java/com/digi/xbee/api/NodeDiscoveryDiscoverDevicesListenerTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,11 @@ public final void testDiscoverDevicesTwoZigBeeDevice() throws Exception {
609609
addr16[1], macs[1], nIds[1], parentAddr[1], (byte)0x01 /* router */, (byte)0x67, false);
610610
ndAnswers.add(packet);
611611

612+
// Give more time to avoid the test fails.
613+
long m = System.currentTimeMillis();
614+
PowerMockito.when(deviceMock.getParameter("NT")).thenReturn(ByteUtils.longToByteArray(TIMEOUT*2 / 100));
615+
System.out.println(System.currentTimeMillis() - m);
616+
612617
DiscoveryListener listener = new DiscoveryListener();
613618
listeners.add(listener);
614619

0 commit comments

Comments
 (0)