Skip to content

Commit e02ac84

Browse files
committed
fix(V2): normalize short-mode wait endpoints
Map tracked resource types to canonical endpoint paths before batch appear-waits so camelCase type keys do not poll invalid V2 routes.
1 parent 2a2ad5b commit e02ac84

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/v2/live-api/data-short.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,10 @@ async function commitAndWait(phase) {
159159
const verificationRecords = getBatchVerificationRecords();
160160
const recordsToWaitFor = [];
161161
for (const [type, typeRecords] of Object.entries(verificationRecords)) {
162+
const endpointPath = getEndpointPath(type);
162163
for (const [id, recordInfo] of Object.entries(typeRecords)) {
163164
if (recordInfo.operation === 'POST' || recordInfo.operation === 'PUT') {
164-
recordsToWaitFor.push({ type, id });
165+
recordsToWaitFor.push({ type: endpointPath, id });
165166
}
166167
}
167168
}

0 commit comments

Comments
 (0)