Skip to content

Commit

Permalink
tests: bsim: Bluetooth: Fix simulation length be greater than wait time
Browse files Browse the repository at this point in the history
Fix some test simulation length be greater than wait time.
These tests completed within 12 seconds, 15 second wait
time is a good value with included margin and a 20 second
simulation time.

These tests failed on this PR CI.

(cherry picked from commit 98130af)

Original-Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
GitOrigin-RevId: 98130af
Cr-Build-Id: 8730286630880259329
Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8730286630880259329
Copybot-Job-Name: zephyr-main-copybot-downstream
Change-Id: Ibd702744a55140587c12329c66b9504ee0d1deab
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6045784
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
  • Loading branch information
Vinayak Kariappa Chettimada authored and Chromeos LUCI committed Nov 26, 2024
1 parent fd817c7 commit 6b7a31b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bsim/bluetooth/host/adv/periodic/src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <zephyr/bluetooth/uuid.h>
#include <zephyr/bluetooth/gatt.h>

#define WAIT_SECONDS 30 /* seconds */
#define WAIT_SECONDS 15 /* seconds */
#define WAIT_TIME (WAIT_SECONDS * USEC_PER_SEC) /* microseconds*/

#define CREATE_FLAG(flag) static atomic_t flag = (atomic_t)false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ source ${ZEPHYR_BASE}/tests/bsim/sh_common.source

simulation_id="per_adv_conn_privacy"
verbosity_level=2
EXECUTE_TIMEOUT=60

cd ${BSIM_OUT_PATH}/bin

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ source ${ZEPHYR_BASE}/tests/bsim/sh_common.source

simulation_id="per_adv_long_data"
verbosity_level=2
EXECUTE_TIMEOUT=60

cd ${BSIM_OUT_PATH}/bin

Expand Down

0 comments on commit 6b7a31b

Please sign in to comment.