Skip to content

Commit c33f0a7

Browse files
committed
Remove test that is not needed anymore
1 parent f61acde commit c33f0a7

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

packages/test/test-end-to-end-tests/src/test/deRehydrateContainerTests.spec.ts

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { describeCompat } from "@fluid-private/test-version-utils";
1010
import type { ISharedCell } from "@fluidframework/cell/internal";
1111
import { IContainer, IFluidCodeDetails } from "@fluidframework/container-definitions/internal";
1212
import { Loader } from "@fluidframework/container-loader/internal";
13-
import { IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
1413
import { IFluidHandle, IRequest } from "@fluidframework/core-interfaces";
1514
import type { SharedCounter } from "@fluidframework/counter/internal";
1615
import { ISummaryTree, SummaryType } from "@fluidframework/driver-definitions";
@@ -532,47 +531,6 @@ describeCompat(
532531
assert.strictEqual(sparseMatrix.id, sparseMatrixId, "Sparse matrix should exist!!");
533532
});
534533

535-
it("Storage in detached container", async () => {
536-
const { container } = await createDetachedContainerAndGetEntryPoint();
537-
538-
const snapshotTree = container.serialize();
539-
const defaultDataStore =
540-
await getContainerEntryPointBackCompat<TestFluidObject>(container);
541-
assert(
542-
defaultDataStore.context.storage !== undefined,
543-
"Storage should be present in detached data store",
544-
);
545-
let success1: boolean | undefined;
546-
await (defaultDataStore.context.containerRuntime as IContainerRuntime).storage
547-
.getSnapshotTree(undefined)
548-
.catch((err) => {
549-
success1 = false;
550-
});
551-
assert(
552-
success1 === false,
553-
"Snapshot fetch should not be allowed in detached data store",
554-
);
555-
556-
const container2: IContainer =
557-
await loader.rehydrateDetachedContainerFromSnapshot(snapshotTree);
558-
const defaultDataStore2 =
559-
await getContainerEntryPointBackCompat<TestFluidObject>(container2);
560-
assert(
561-
defaultDataStore2.context.storage !== undefined,
562-
"Storage should be present in rehydrated data store",
563-
);
564-
let success2: boolean | undefined;
565-
await (defaultDataStore2.context.containerRuntime as IContainerRuntime).storage
566-
.getSnapshotTree(undefined)
567-
.catch((err) => {
568-
success2 = false;
569-
});
570-
assert(
571-
success2 === false,
572-
"Snapshot fetch should not be allowed in rehydrated data store",
573-
);
574-
});
575-
576534
it("Change contents of dds, then rehydrate and then check summary", async () => {
577535
const { container } = await createDetachedContainerAndGetEntryPoint();
578536

0 commit comments

Comments
 (0)