You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by we...@apache.org on 2016/08/11 21:27:16 UTC

[16/50] [abbrv] incubator-mynewt-core git commit: BLE Host - gap test needs to hb when checking tmo.

BLE Host - gap test needs to hb when checking tmo.

When ensuring that the passage of time causes no effects, the test node
needs to call ble_hs_heartbeat() to let the host know that time has
passed.  This is only necessary because the OS is not running during
this test.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/1280abcc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/1280abcc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/1280abcc

Branch: refs/heads/phyrx_no_mbuf
Commit: 1280abccbf57ca0cc7f9b732ca864302c1e78ff5
Parents: ac93fc4
Author: Christopher Collins <cc...@apache.org>
Authored: Sun Aug 7 17:58:16 2016 -0700
Committer: William San Filippo <wi...@runtime.io>
Committed: Thu Aug 11 14:26:25 2016 -0700

----------------------------------------------------------------------
 net/nimble/host/src/test/ble_gap_test.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/1280abcc/net/nimble/host/src/test/ble_gap_test.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/test/ble_gap_test.c b/net/nimble/host/src/test/ble_gap_test.c
index 2d4c551..1943d01 100644
--- a/net/nimble/host/src/test/ble_gap_test.c
+++ b/net/nimble/host/src/test/ble_gap_test.c
@@ -2324,6 +2324,7 @@ ble_gap_test_util_conn_forever(void)
 
     /* Advance 100 seconds; ensure no timeout reported. */
     os_time_advance(100 * OS_TICKS_PER_SEC);
+    ble_gap_heartbeat();
     TEST_ASSERT(ble_gap_test_conn_event_type == -1);
     TEST_ASSERT(ble_gap_conn_active());
 }