Skip to content

Commit 16b1adf

Browse files
test: make sure proxyMeta is reset before next test file
1 parent 539c281 commit 16b1adf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

test/suite/integration/devmode.adv.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ test("can fake deepsleep in devmode", async () => {
4141
await readUntil("uploading Pymakr devtools");
4242
await readUntil("patching boot.dev");
4343
await readUntil("changed. Restarting...");
44-
await readUntil(">>>");
45-
await readUntil(">>>");
4644
console.log("after reset");
47-
45+
// todo test only works when run alone
4846
test("sys.path includes _pymakr_dev", async () => {
47+
await readUntil(">>>");
48+
await readUntil(">>>");
4949
console.log("before sys check");
5050
const result = await device.runScript("import sys\nprint(sys.path)");
5151
assert(result.match(/\/_pymakr_dev/), "did not find _pymakr_dev. Found: " + result.toString());

test/suite/integration/probs.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ const PROJECT_STORE_TIMEOUT = 10000;
88
* @param {Device} device
99
*/
1010
const prepDevice = async (device) => {
11+
device.adapter.__proxyMeta.clearQueue();
12+
await device.adapter.__proxyMeta.idle;
1113
await device.connect();
12-
1314
await pymakr.commands.safeBootDevice({ device });
1415
// TODO timeout here should not be required. High priority!
1516
await new Promise((resolve) => setTimeout(resolve, 500));

0 commit comments

Comments
 (0)