Skip to content

Commit da21767

Browse files
author
Marco Crespi
committed
chore(tests): Improve test scripts
1 parent 3a11903 commit da21767

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/advertise.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ const main = async () => {
7373

7474
await adapter.startAdvertising(NAME, ['48ee0000bf49460ca3d77ec7a512a4ce']);
7575

76-
console.log(adapter.address);
77-
78-
console.log('Advertising...');
76+
console.log(`Advertising as ${adapter.address}...`);
7977
};
8078

8179
main().catch((err) => {

tests/connect.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const main = async () => {
4646
console.log('Waiting to scan a bit...');
4747

4848
// Scan for 3 seconds
49-
await new Promise((resolve) => setTimeout(resolve, 5000));
49+
await new Promise((resolve) => setTimeout(resolve, 3000));
5050

5151
await adapter.stopScanning();
5252

@@ -110,6 +110,7 @@ const main = async () => {
110110
success++;
111111
} catch (err) {
112112
console.error(err);
113+
await new Promise((resolve) => setTimeout(() => resolve(), 1000));
113114
}
114115

115116
total++;

0 commit comments

Comments
 (0)