Skip to content

Commit 92f1605

Browse files
committed
chore: remove (HTTP 400) to match new error message
1 parent f881902 commit 92f1605

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/integration/transports/configOverrides.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ describe("Config Overrides via HTTP", () => {
112112
if (!(error instanceof Error)) {
113113
throw new Error("Expected an error to be thrown");
114114
}
115-
expect(error.message).toContain("Error POSTing to endpoint (HTTP 400)");
115+
expect(error.message).toContain("Error POSTing to endpoint");
116116
expect(error.message).toContain(`Config key connectionString is not allowed to be overridden`);
117117
}
118118
});
@@ -199,7 +199,7 @@ describe("Config Overrides via HTTP", () => {
199199
if (!(error instanceof Error)) {
200200
throw new Error("Expected an error to be thrown");
201201
}
202-
expect(error.message).toContain("Error POSTing to endpoint (HTTP 400)");
202+
expect(error.message).toContain("Error POSTing to endpoint");
203203
expect(error.message).toContain(`Config key ${configKey} is not allowed to be overridden`);
204204
}
205205
});
@@ -222,7 +222,7 @@ describe("Config Overrides via HTTP", () => {
222222
if (!(error instanceof Error)) {
223223
throw new Error("Expected an error to be thrown");
224224
}
225-
expect(error.message).toContain("Error POSTing to endpoint (HTTP 400)");
225+
expect(error.message).toContain("Error POSTing to endpoint");
226226
// Should contain at least one of the not-allowed field errors
227227
const hasNotAllowedError =
228228
error.message.includes("Config key apiBaseUrl is not allowed to be overridden") ||
@@ -379,7 +379,7 @@ describe("Config Overrides via HTTP", () => {
379379
if (!(error instanceof Error)) {
380380
throw new Error("Expected an error to be thrown");
381381
}
382-
expect(error.message).toContain("Error POSTing to endpoint (HTTP 400)");
382+
expect(error.message).toContain("Error POSTing to endpoint");
383383
expect(error.message).toContain(`Cannot apply override for readOnly: Can only set to true`);
384384
}
385385
});
@@ -455,7 +455,7 @@ describe("Config Overrides via HTTP", () => {
455455
if (!(error instanceof Error)) {
456456
throw new Error("Expected an error to be thrown");
457457
}
458-
expect(error.message).toContain("Error POSTing to endpoint (HTTP 400)");
458+
expect(error.message).toContain("Error POSTing to endpoint");
459459
expect(error.message).toContain(
460460
"Cannot apply override for idleTimeoutMs: Can only set to a value lower than the base value"
461461
);
@@ -479,7 +479,7 @@ describe("Config Overrides via HTTP", () => {
479479
if (!(error instanceof Error)) {
480480
throw new Error("Expected an error to be thrown");
481481
}
482-
expect(error.message).toContain("Error POSTing to endpoint (HTTP 400)");
482+
expect(error.message).toContain("Error POSTing to endpoint");
483483
expect(error.message).toContain(
484484
"Cannot apply override for idleTimeoutMs: Can only set to a value lower than the base value"
485485
);
@@ -539,7 +539,7 @@ describe("Config Overrides via HTTP", () => {
539539
if (!(error instanceof Error)) {
540540
throw new Error("Expected an error to be thrown");
541541
}
542-
expect(error.message).toContain("Error POSTing to endpoint (HTTP 400)");
542+
expect(error.message).toContain("Error POSTing to endpoint");
543543
expect(error.message).toContain(
544544
"Cannot apply override for previewFeatures: Can only override to a subset of the base value"
545545
);

tests/integration/transports/streamableHttp.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe("StreamableHttpRunner", () => {
9393
throw err;
9494
} else {
9595
expect(err).toBeDefined();
96-
expect(err?.toString()).toContain("HTTP 403");
96+
expect(err?.toString()).toContain("Error POSTing to endpoint");
9797
}
9898
}
9999
});

0 commit comments

Comments
 (0)