Skip to content

Commit

Permalink
chore: increase test timeout to 20 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
karenc-bq committed Oct 9, 2024
1 parent 3f53caf commit 4e9ed78
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
12 changes: 6 additions & 6 deletions tests/integration/container/tests/aurora_failover.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe("aurora failover", () => {

client = null;
secondaryClient = null;
}, 1000000);
}, 1320000);

afterEach(async () => {
if (client !== null) {
Expand All @@ -85,7 +85,7 @@ describe("aurora failover", () => {
}
}
logger.info(`Test finished: ${expect.getState().currentTestName}`);
}, 1000000);
}, 1320000);

itIf(
"fails from writer to new writer on connection invocation",
Expand Down Expand Up @@ -113,7 +113,7 @@ describe("aurora failover", () => {
expect(await auroraTestUtility.isDbInstanceWriter(currentConnectionId)).toBe(true);
expect(currentConnectionId).not.toBe(initialWriterId);
},
1000000
1320000
);

itIf(
Expand Down Expand Up @@ -163,7 +163,7 @@ describe("aurora failover", () => {

await DriverHelper.executeQuery(env.engine, client, "DROP TABLE IF EXISTS test3_3");
},
1000000
1320000
);

itIf(
Expand Down Expand Up @@ -195,7 +195,7 @@ describe("aurora failover", () => {
expect(await auroraTestUtility.isDbInstanceWriter(currentConnectionId)).toBe(true);
expect(currentConnectionId).not.toBe(initialWriterId);
},
1000000
1320000
);

itIf(
Expand Down Expand Up @@ -248,6 +248,6 @@ describe("aurora failover", () => {
expect(currentConnectionId).toBe(initialWriterId);
}
},
1000000
1320000
);
});
14 changes: 7 additions & 7 deletions tests/integration/container/tests/basic_connectivity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ beforeEach(async () => {
await ProxyHelper.enableAllConnectivity();
await TestEnvironment.verifyClusterStatus();
client = null;
}, 1000000);
}, 1320000);

afterEach(async () => {
if (client !== null) {
Expand All @@ -57,7 +57,7 @@ afterEach(async () => {
}
}
logger.info(`Test finished: ${expect.getState().currentTestName}`);
}, 1000000);
}, 1320000);

describe("basic_connectivity", () => {
itIf(
Expand All @@ -80,7 +80,7 @@ describe("basic_connectivity", () => {

await executeInstanceQuery(client, env.engine, env.deployment, props);
},
1000000
1320000
);

itIf(
Expand All @@ -103,7 +103,7 @@ describe("basic_connectivity", () => {
client = initClientFunc(props);
await executeInstanceQuery(client, env.engine, env.deployment, props);
},
1000000
1320000
);

itIf(
Expand All @@ -126,7 +126,7 @@ describe("basic_connectivity", () => {
client = initClientFunc(props);
await executeInstanceQuery(client, env.engine, env.deployment, props);
},
1000000
1320000
);

itIf(
Expand Down Expand Up @@ -156,7 +156,7 @@ describe("basic_connectivity", () => {

expect(res).not.toBeNull();
},
1000000
1320000
);

itIf(
Expand Down Expand Up @@ -192,6 +192,6 @@ describe("basic_connectivity", () => {

await ProxyHelper.enableAllConnectivity();
},
1000000
1320000
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe("iam authentication", () => {
afterEach(async () => {
await TestEnvironment.verifyClusterStatus();
logger.info(`Test finished: ${expect.getState().currentTestName}`);
}, 1000000);
}, 1320000);

itIf(
"iam wrong database username",
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/container/tests/performance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,22 +270,22 @@ describe("performance", () => {
afterEach(async () => {
await TestEnvironment.verifyClusterStatus();
logger.info(`Test finished: ${expect.getState().currentTestName}`);
}, 1000000);
}, 1320000);

itIf(
"failure detection with efm enabled",
async () => {
await testFailureDetectionTimeEfmEnabled();
},
10000000
13200000
);

itIf(
"failure detection with failover and efm enabled",
async () => {
await testFailureDetectionTimeFailoverAndEfmEnabled();
},
10000000
13200000
);
});

Expand Down
20 changes: 10 additions & 10 deletions tests/integration/container/tests/read_write_splitting.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe("aurora read write splitting", () => {
await ProxyHelper.enableAllConnectivity();
client = null;
await TestEnvironment.verifyClusterStatus();
}, 1000000);
}, 1320000);

afterEach(async () => {
if (client !== null) {
Expand All @@ -90,7 +90,7 @@ describe("aurora read write splitting", () => {
}
}
logger.info(`Test finished: ${expect.getState().currentTestName}`);
}, 1000000);
}, 1320000);

it.skip("test connect to writer switch set read only", async () => {
const config = await initDefaultConfig(env.databaseInfo.writerInstanceEndpoint, env.databaseInfo.instanceEndpointPort, false);
Expand Down Expand Up @@ -125,7 +125,7 @@ describe("aurora read write splitting", () => {
const currentId3 = await auroraTestUtility.queryInstanceId(client);
expect(currentId3).toStrictEqual(readerId);
expect(await auroraTestUtility.isDbInstanceWriter(currentId3)).toStrictEqual(false);
}, 1000000);
}, 1320000);

itIf(
"test set read only false in read only transaction",
Expand Down Expand Up @@ -166,7 +166,7 @@ describe("aurora read write splitting", () => {
const currentConnectionId1 = await auroraTestUtility.queryInstanceId(client);
expect(currentConnectionId1).toStrictEqual(initialWriterId);
},
1000000
1320000
);

itIf(
Expand Down Expand Up @@ -210,7 +210,7 @@ describe("aurora read write splitting", () => {

await DriverHelper.executeQuery(env.engine, client, "DROP TABLE IF EXISTS test3_3");
},
1000000
1320000
);

itIf(
Expand Down Expand Up @@ -238,7 +238,7 @@ describe("aurora read write splitting", () => {
await client.setReadOnly(false);
}).rejects.toThrow();
},
1000000
1320000
);

itIf(
Expand Down Expand Up @@ -277,7 +277,7 @@ describe("aurora read write splitting", () => {
const currentReaderId2 = await auroraTestUtility.queryInstanceId(client);
expect(currentReaderId2).not.toBe(initialWriterId);
},
1000000
1320000
);

itIf(
Expand Down Expand Up @@ -336,7 +336,7 @@ describe("aurora read write splitting", () => {
const currentId = await auroraTestUtility.queryInstanceId(client);
expect(currentId).toStrictEqual(newWriterId);
},
1000000
1320000
);

itIf(
Expand Down Expand Up @@ -402,7 +402,7 @@ describe("aurora read write splitting", () => {
// const currentReaderId2 = await auroraTestUtility.queryInstanceId(client);
// expect(currentReaderId2).toStrictEqual(otherReaderId);
},
1000000
1320000
);

itIf(
Expand Down Expand Up @@ -453,6 +453,6 @@ describe("aurora read write splitting", () => {
const currentId2 = await auroraTestUtility.queryInstanceId(client);
expect(currentId2).toStrictEqual(initialWriterId);
},
1000000
1320000
);
});

0 comments on commit 4e9ed78

Please sign in to comment.