fix runid
This commit is contained in:
@@ -294,6 +294,7 @@ test("panel consumes uploaded device files from an inbox without scanning folder
|
||||
});
|
||||
assert.equal(pending.pending, true);
|
||||
assert.equal(pending.fileName, "result_20260724_120000.csv");
|
||||
assert.equal(pending.runId, "result_20260724_120000.csv");
|
||||
assert.equal(await (await fetch(pending.url)).text(), "t,u,p\n0,10,20\n");
|
||||
|
||||
assert.equal((await post({
|
||||
@@ -328,6 +329,7 @@ test("panel consumes uploaded device files from an inbox without scanning folder
|
||||
});
|
||||
assert.equal(history.total, 2);
|
||||
const csvHistory = history.files.find((file) => file.fileID === pending.fileID);
|
||||
assert.equal(csvHistory.runId, "result_20260724_120000.csv");
|
||||
assert.equal(csvHistory.status, "processed");
|
||||
assert.ok(csvHistory.processedAt);
|
||||
assert.ok(csvHistory.expiresAt);
|
||||
@@ -575,6 +577,7 @@ test("panel notifications and volume configuration stay isolated by device", asy
|
||||
type: "getPendingPanelNotification", deviceId, adminToken: "test-token"
|
||||
});
|
||||
assert.equal(identificationResult.notification.type, "identification_result_ready");
|
||||
assert.equal(identificationResult.notification.runId, "identification_result.json");
|
||||
});
|
||||
|
||||
test("admin manages companies and production lines with a stable device id", async () => {
|
||||
|
||||
Reference in New Issue
Block a user