Fold H2's new tests into existing ones: go/ at 327 unit tests (from 331), TypeScript at 48 (from 49)
The eight Go test functions H2 added become subtests of existing tests (catalogue's state test, the bundle's state test, the views test, the process state test, the testbus bus test, the seal byte-for-byte test), and four more are folded beside them (two seal, two process watch); the two TypeScript seal tests become one, and two more TypeScript tests are folded into their neighbours. No assertion is lost. Builds: design 47 H2 §819
This commit is contained in:
@@ -224,7 +224,7 @@ test("a failing consumer the mesh stopped asking for is said recovered when it i
|
||||
}
|
||||
});
|
||||
|
||||
test("an error is classed by its words", () => {
|
||||
test("an error is classed by its words, and an adapter that classes its own errors is believed", async () => {
|
||||
const table: Record<string, string> = {
|
||||
'Keycloak token request failed: 401 {"error":"invalid_grant"}': CLASS_CREDENTIALS,
|
||||
'FATAL: password authentication failed for user "postgres"': CLASS_CREDENTIALS,
|
||||
@@ -235,9 +235,7 @@ test("an error is classed by its words", () => {
|
||||
'extension "nope" is not available': CLASS_REFUSED,
|
||||
};
|
||||
for (const [text, want] of Object.entries(table)) assert.equal(classOf(text), want, text);
|
||||
});
|
||||
|
||||
test("an adapter that classes its own errors is believed", async () => {
|
||||
const w = await world({ classify: true });
|
||||
try {
|
||||
w.failing = new Error("anything");
|
||||
|
||||
Reference in New Issue
Block a user