Skip to content

Commit b9dcc3d

Browse files
ppryga-nordiccarlescufi
authored andcommitted
tests: Bluetooth: df: Add missing conn handle assignment
There was missing assignment to a global variable that stores connection handle. The value was always the same, hence it test were not failing. The value was passed over from setup state done for other tests. This change makes sure there is always correct handle stored in global variable. Signed-off-by: Piotr Pryga <[email protected]>
1 parent 5922b21 commit b9dcc3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/bluetooth/df/connection_cte_req/src/test_cte_req_enable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static void cte_rx_param_setup(void)
194194

195195
cte_req_params_set();
196196

197-
ut_bt_create_connection();
197+
g_conn_handle = ut_bt_create_connection();
198198
ut_bt_set_periph_latency(g_conn_handle, CONN_PERIPH_LATENCY);
199199

200200
send_set_conn_cte_rx_params(g_conn_handle, &cte_rx_params, true);

0 commit comments

Comments
 (0)