Skip to content

Commit 8d4d531

Browse files
authored
test: add comprehensive push notification disabled scenarios (#3)
1 parent 0fb62bd commit 8d4d531

File tree

4 files changed

+286
-75
lines changed

4 files changed

+286
-75
lines changed

packages/client/lib/tests/test-scenario/connection-handoff.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ describe("Connection Handoff", () => {
110110
];
111111

112112
for (const { name, clientOptions } of cases) {
113-
it.only(`should establish new connection and resume traffic afterwards - ${name}`, async () => {
113+
it(`should establish new connection and resume traffic afterwards - ${name}`, async () => {
114114
client = await createTestClient(clientConfig, clientOptions);
115115

116116
const spyObject = spyOnTemporaryClientInstanceMethod(client, "connect");

packages/client/lib/tests/test-scenario/fault-injector-client.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export type ActionType =
99
| "execute_rlutil_command"
1010
| "execute_rladmin_command"
1111
| "migrate"
12-
| "bind";
12+
| "bind"
13+
| "update_cluster_config";
1314

1415
export interface ActionRequest {
1516
type: ActionType;
@@ -47,7 +48,9 @@ export class FaultInjectorClient {
4748
* @param action The action request to trigger
4849
* @throws {Error} When the HTTP request fails or response cannot be parsed as JSON
4950
*/
50-
public triggerAction<T extends { action_id: string }>(action: ActionRequest): Promise<T> {
51+
public triggerAction<T extends { action_id: string }>(
52+
action: ActionRequest
53+
): Promise<T> {
5154
return this.#request<T>("POST", "/action", action);
5255
}
5356

0 commit comments

Comments
 (0)