@substrat-run/contract-tests 0.113.0 → 0.114.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope-host-suite.d.ts","sourceRoot":"","sources":["../src/scope-host-suite.ts"],"names":[],"mappings":"AAwBA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,sBAAsB,CAAC;AAW9B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,SAAS,CAAC;IAChB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AA2BD,iFAAiF;AACjF,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,EAC5C,IAAI,GAAE,qBAA0B,GAC/B,IAAI,
|
|
1
|
+
{"version":3,"file":"scope-host-suite.d.ts","sourceRoot":"","sources":["../src/scope-host-suite.ts"],"names":[],"mappings":"AAwBA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,sBAAsB,CAAC;AAW9B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,SAAS,CAAC;IAChB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AA2BD,iFAAiF;AACjF,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,EAC5C,IAAI,GAAE,qBAA0B,GAC/B,IAAI,CAy9KN"}
|
package/dist/scope-host-suite.js
CHANGED
|
@@ -772,6 +772,19 @@ export function scopeHostContractSuite(adapterName, makeFixture, opts = {}) {
|
|
|
772
772
|
const after = await host.executorDeadLetters(t1, s1);
|
|
773
773
|
expect(after).toHaveLength(before.length);
|
|
774
774
|
});
|
|
775
|
+
it('lists the scope\'s dead letters through the platform verb, and not a retrying one (#1525)', async () => {
|
|
776
|
+
// `readDeadLetters`' own suite pins the predicate and the paging over a hand-built
|
|
777
|
+
// table; this proves the wiring — that a delivery a real drain gave up on comes back
|
|
778
|
+
// through `deadLetters` on both adapters, and one still being retried does not.
|
|
779
|
+
const page = await host.admin.deadLetters(staff, t1, s1, {});
|
|
780
|
+
const doomed = page.entries.find((d) => d.consumer === 'executor:doomed-effector');
|
|
781
|
+
expect(doomed).toBeDefined();
|
|
782
|
+
expect(doomed.eventType).toBe('effect.doomed');
|
|
783
|
+
expect(doomed.attempts).toBe(2);
|
|
784
|
+
expect(doomed.error).toContain('always fails');
|
|
785
|
+
// `poison-a` failed and is backed off: an error on the row, but a retry still due.
|
|
786
|
+
expect(page.entries.some((d) => d.consumer === 'executor:flaky-effector')).toBe(false);
|
|
787
|
+
});
|
|
775
788
|
// -- scope data introspection: the §5.4 admin-query RPC --------------------
|
|
776
789
|
//
|
|
777
790
|
// A read-only window into a scope's OWN database (the console/dashboard Data
|