mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-04-19 21:09:46 +01:00
fix: move container creation to beforeAll to reduce CI shard timeout
This commit is contained in:
@@ -6,8 +6,11 @@ test.describe("Throughput bucket settings", () => {
|
|||||||
let context: TestContainerContext = null!;
|
let context: TestContainerContext = null!;
|
||||||
let explorer: DataExplorer = null!;
|
let explorer: DataExplorer = null!;
|
||||||
|
|
||||||
test.beforeEach("Create Test Database & Open Throughput Bucket Settings", async ({ browser }) => {
|
test.beforeAll("Create Test Database", async () => {
|
||||||
context = await createTestSQLContainer();
|
context = await createTestSQLContainer();
|
||||||
|
});
|
||||||
|
|
||||||
|
test.beforeEach("Open Throughput Bucket Settings", async ({ browser }) => {
|
||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
explorer = await DataExplorer.open(page, TestAccount.SQL);
|
explorer = await DataExplorer.open(page, TestAccount.SQL);
|
||||||
|
|
||||||
@@ -19,7 +22,7 @@ test.describe("Throughput bucket settings", () => {
|
|||||||
|
|
||||||
// Delete database only if not running in CI
|
// Delete database only if not running in CI
|
||||||
if (!process.env.CI) {
|
if (!process.env.CI) {
|
||||||
test.afterEach("Delete Test Database", async () => {
|
test.afterAll("Delete Test Database", async () => {
|
||||||
await context?.dispose();
|
await context?.dispose();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user