mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-04-20 13:30:27 +01:00
@@ -250,8 +250,7 @@ class TreeNode {
|
|||||||
// Try three times to wait for the node to expand.
|
// Try three times to wait for the node to expand.
|
||||||
for (let i = 0; i < RETRY_COUNT; i++) {
|
for (let i = 0; i < RETRY_COUNT; i++) {
|
||||||
try {
|
try {
|
||||||
// Use a longer timeout (30s) since expanding may require loading children from the server
|
await tree.waitFor({ state: "visible" });
|
||||||
await tree.waitFor({ state: "visible", timeout: 30 * 1000 });
|
|
||||||
// The tree has expanded, let's get out of here
|
// The tree has expanded, let's get out of here
|
||||||
return true;
|
return true;
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ test.describe("Database with Shared Throughput", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("Create database with shared manual throughput and verify Scale node in UI", async () => {
|
test("Create database with shared manual throughput and verify Scale node in UI", async () => {
|
||||||
test.setTimeout(180000); // 3 minutes timeout
|
test.setTimeout(120000); // 2 minutes timeout
|
||||||
// Create database with shared manual throughput (400 RU/s)
|
// Create database with shared manual throughput (400 RU/s)
|
||||||
dbContext = await createTestDB({ throughput: 400 });
|
dbContext = await createTestDB({ throughput: 400 });
|
||||||
|
|
||||||
@@ -47,7 +47,6 @@ test.describe("Database with Shared Throughput", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("Add container to shared database without dedicated throughput", async () => {
|
test("Add container to shared database without dedicated throughput", async () => {
|
||||||
test.setTimeout(180000); // 3 minutes timeout
|
|
||||||
// Create database with shared manual throughput
|
// Create database with shared manual throughput
|
||||||
dbContext = await createTestDB({ throughput: 400 });
|
dbContext = await createTestDB({ throughput: 400 });
|
||||||
|
|
||||||
@@ -101,7 +100,6 @@ test.describe("Database with Shared Throughput", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("Scale shared database manual throughput", async () => {
|
test("Scale shared database manual throughput", async () => {
|
||||||
test.setTimeout(180000); // 3 minutes timeout
|
|
||||||
// Create database with shared manual throughput (400 RU/s)
|
// Create database with shared manual throughput (400 RU/s)
|
||||||
dbContext = await createTestDB({ throughput: 400 });
|
dbContext = await createTestDB({ throughput: 400 });
|
||||||
|
|
||||||
@@ -127,7 +125,6 @@ test.describe("Database with Shared Throughput", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("Scale shared database from manual to autoscale", async () => {
|
test("Scale shared database from manual to autoscale", async () => {
|
||||||
test.setTimeout(180000); // 3 minutes timeout
|
|
||||||
// Create database with shared manual throughput (400 RU/s)
|
// Create database with shared manual throughput (400 RU/s)
|
||||||
dbContext = await createTestDB({ throughput: 400 });
|
dbContext = await createTestDB({ throughput: 400 });
|
||||||
|
|
||||||
@@ -162,7 +159,7 @@ test.describe("Database with Shared Throughput", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("Create database with shared autoscale throughput and verify Scale node in UI", async () => {
|
test("Create database with shared autoscale throughput and verify Scale node in UI", async () => {
|
||||||
test.setTimeout(180000); // 3 minutes timeout
|
test.setTimeout(120000); // 2 minutes timeout
|
||||||
|
|
||||||
// Create database with shared autoscale throughput (max 1000 RU/s)
|
// Create database with shared autoscale throughput (max 1000 RU/s)
|
||||||
dbContext = await createTestDB({ maxThroughput: 1000 });
|
dbContext = await createTestDB({ maxThroughput: 1000 });
|
||||||
@@ -181,7 +178,6 @@ test.describe("Database with Shared Throughput", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("Scale shared database autoscale throughput", async () => {
|
test("Scale shared database autoscale throughput", async () => {
|
||||||
test.setTimeout(180000); // 3 minutes timeout
|
|
||||||
// Create database with shared autoscale throughput (max 1000 RU/s)
|
// Create database with shared autoscale throughput (max 1000 RU/s)
|
||||||
dbContext = await createTestDB({ maxThroughput: 1000 });
|
dbContext = await createTestDB({ maxThroughput: 1000 });
|
||||||
|
|
||||||
@@ -207,7 +203,6 @@ test.describe("Database with Shared Throughput", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("Scale shared database from autoscale to manual", async () => {
|
test("Scale shared database from autoscale to manual", async () => {
|
||||||
test.setTimeout(180000); // 3 minutes timeout
|
|
||||||
// Create database with shared autoscale throughput (max 1000 RU/s)
|
// Create database with shared autoscale throughput (max 1000 RU/s)
|
||||||
dbContext = await createTestDB({ maxThroughput: 1000 });
|
dbContext = await createTestDB({ maxThroughput: 1000 });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user