Skip to content

Commit 6f4d129

Browse files
Merge branch 'next-staging' into next
2 parents ef79d51 + 16b1adf commit 6f4d129

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Watcher/DeviceManager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class DeviceManager {
143143
async hardRestartDevice(modulesToDelete) {
144144
this.log.log("hard restart device");
145145
await this.device.runScript(`\rprint("[dev] \'${modulesToDelete[0]}\' changed. Restarting... ")\r`);
146-
this.device.reset();
146+
await this.device.reset();
147147
}
148148

149149
async softRestartDevice(modulesToDelete) {

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

+3-3
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

+2-1
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)