@bigbinary/neeto-playwright-reporter 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +7 -8
- package/index.cjs.js.map +1 -1
- package/index.js +7 -8
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -18640,17 +18640,16 @@ class MyReporter {
|
|
|
18640
18640
|
this.retryAttemptStartedAt = new Date();
|
|
18641
18641
|
while (!((_b = (_a = this.attempts) === null || _a === void 0 ? void 0 : _a[id]) === null || _b === void 0 ? void 0 : _b["0"]))
|
|
18642
18642
|
await waitUntilTimeout(100); // Poll every 100 milliseconds
|
|
18643
|
+
const attemptsPayload = {
|
|
18644
|
+
status: "running",
|
|
18645
|
+
started_at: new Date().toString(),
|
|
18646
|
+
shard: this.currentShard,
|
|
18647
|
+
};
|
|
18643
18648
|
if (retry === 0) {
|
|
18644
|
-
await attemptsApi.update(this.ciBuildId, id, this.attempts[id]["0"],
|
|
18645
|
-
status: "running",
|
|
18646
|
-
started_at: new Date().toString(),
|
|
18647
|
-
});
|
|
18649
|
+
await attemptsApi.update(this.ciBuildId, id, this.attempts[id]["0"], attemptsPayload);
|
|
18648
18650
|
}
|
|
18649
18651
|
else {
|
|
18650
|
-
const { data: { history_id, attempt_id }, } = await attemptsApi.create(this.ciBuildId, id,
|
|
18651
|
-
status: "running",
|
|
18652
|
-
started_at: new Date().toString(),
|
|
18653
|
-
});
|
|
18652
|
+
const { data: { history_id, attempt_id }, } = await attemptsApi.create(this.ciBuildId, id, attemptsPayload);
|
|
18654
18653
|
this.attempts = {
|
|
18655
18654
|
...this.attempts,
|
|
18656
18655
|
[history_id]: {
|