Skip to content

Commit 0cb1c0c

Browse files
committed
chore: dont send report when ignored
1 parent 487262e commit 0cb1c0c

1 file changed

Lines changed: 23 additions & 21 deletions

File tree

frontend/src/ts/test/test-logic.ts

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,27 +1199,29 @@ function compareCompletedEvents(
11991199
);
12001200
}
12011201
}
1202-
mismatchedKeys.sort();
1203-
const groupKey = mismatchedKeys.join(",");
1204-
Ape.results
1205-
.reportCompletedEventMismatch({
1206-
body: {
1207-
notMatching,
1208-
mismatchedKeys,
1209-
groupKey,
1210-
language: ce.language,
1211-
mode: ce.mode,
1212-
mode2: ce.mode2,
1213-
difficulty: ce.difficulty,
1214-
duration: ce.testDuration,
1215-
funboxes: getActiveFunboxNames().join(","),
1216-
// ce: ce as Record<string, unknown>,
1217-
// ce2: ce2 as Record<string, unknown>,
1218-
},
1219-
})
1220-
.catch(() => {
1221-
//
1222-
});
1202+
if (!ignoreMismatch) {
1203+
mismatchedKeys.sort();
1204+
const groupKey = mismatchedKeys.join(",");
1205+
Ape.results
1206+
.reportCompletedEventMismatch({
1207+
body: {
1208+
notMatching,
1209+
mismatchedKeys,
1210+
groupKey,
1211+
language: ce.language,
1212+
mode: ce.mode,
1213+
mode2: ce.mode2,
1214+
difficulty: ce.difficulty,
1215+
duration: ce.testDuration,
1216+
funboxes: getActiveFunboxNames().join(","),
1217+
// ce: ce as Record<string, unknown>,
1218+
// ce2: ce2 as Record<string, unknown>,
1219+
},
1220+
})
1221+
.catch(() => {
1222+
//
1223+
});
1224+
}
12231225
}
12241226

12251227
console.debug("Completed event object2", ce2);

0 commit comments

Comments
 (0)