rymanluk closed pull request #808: nimble: Fix for failing unit tests
URL: https://github.com/apache/mynewt-core/pull/808
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/net/nimble/host/test/src/ble_hs_pvcy_test.c 
b/net/nimble/host/test/src/ble_hs_pvcy_test.c
index 67b766edb..27e95fded 100644
--- a/net/nimble/host/test/src/ble_hs_pvcy_test.c
+++ b/net/nimble/host/test/src/ble_hs_pvcy_test.c
@@ -125,7 +125,7 @@ ble_hs_pvcy_test_util_start_host(int num_expected_irks)
     TEST_ASSERT_FATAL(rc == 0);
 
     /* Discard startup HCI commands. */
-    ble_hs_test_util_hci_out_adj(12);
+    ble_hs_test_util_hci_out_adj(13);
 }
 
 static void
diff --git a/net/nimble/host/test/src/ble_hs_test_util_hci.c 
b/net/nimble/host/test/src/ble_hs_test_util_hci.c
index 737881147..8eb5c9479 100644
--- a/net/nimble/host/test/src/ble_hs_test_util_hci.c
+++ b/net/nimble/host/test/src/ble_hs_test_util_hci.c
@@ -250,6 +250,12 @@ ble_hs_test_util_hci_ack_set_startup(void)
             .opcode = ble_hs_hci_util_opcode_join(BLE_HCI_OGF_CTLR_BASEBAND,
                                                   BLE_HCI_OCF_CB_RESET),
         },
+        {
+            .opcode = ble_hs_hci_util_opcode_join(
+             BLE_HCI_OGF_INFO_PARAMS, BLE_HCI_OCF_IP_RD_LOCAL_VER),
+            .evt_params = { 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
+            .evt_params_len = 8,
+        },
         {
             .opcode = ble_hs_hci_util_opcode_join(
                 BLE_HCI_OGF_CTLR_BASEBAND, BLE_HCI_OCF_CB_SET_EVENT_MASK),


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to