diff --git a/test/sql/scaleAndSettings/changePartitionKey.spec.ts b/test/sql/scaleAndSettings/changePartitionKey.spec.ts index da9b422ef..a5f69cc35 100644 --- a/test/sql/scaleAndSettings/changePartitionKey.spec.ts +++ b/test/sql/scaleAndSettings/changePartitionKey.spec.ts @@ -1,5 +1,5 @@ import { expect, Page, test } from "@playwright/test"; -import { DataExplorer, TestAccount } from "../../fx"; +import { DataExplorer, ONE_MINUTE_MS, TestAccount } from "../../fx"; import { createTestSQLContainer, TestContainerContext } from "../../testData"; test.describe("Change Partition Key", () => { @@ -62,7 +62,7 @@ test.describe("Change Partition Key", () => { await changePkPanel.getByTestId("Panel/OkButton").click(); await pageInstance.waitForLoadState("networkidle"); - await expect(changePkPanel).not.toBeVisible({ timeout: 60 * 1000 }); + await expect(changePkPanel).not.toBeVisible({ timeout: 2 * ONE_MINUTE_MS }); // Verify partition key change job const jobText = explorer.frame.getByText(/Partition key change job/);