Skip to content

Commit 683fcd1

Browse files
committed
skip if not odsp
1 parent 14352af commit 683fcd1

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

packages/test/test-end-to-end-tests/src/test/summarization/onDemandSummarizerApi.spec.ts

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ import {
1919
ITestContainerConfig,
2020
ITestFluidObject,
2121
DataObjectFactoryType,
22+
ITestObjectProvider,
2223
} from "@fluidframework/test-utils/internal";
2324

2425
describeCompat("on-demand summarizer api", "NoCompat", (getTestObjectProvider, apis) => {
2526
let logger: MockLogger;
27+
let provider: ITestObjectProvider;
2628

2729
beforeEach(() => {
30+
provider = getTestObjectProvider();
2831
logger = new MockLogger();
2932
});
3033

@@ -39,7 +42,6 @@ describeCompat("on-demand summarizer api", "NoCompat", (getTestObjectProvider, a
3942
};
4043

4144
async function buildLoadProps(): Promise<ILoadExistingContainerProps> {
42-
const provider = getTestObjectProvider();
4345
const container = await provider.makeTestContainer(testContainerConfig);
4446
const entry = (await container.getEntryPoint()) as ITestFluidObject;
4547
assert(entry !== undefined, "entry point must resolve");
@@ -53,7 +55,10 @@ describeCompat("on-demand summarizer api", "NoCompat", (getTestObjectProvider, a
5355
return { ...loaderProps, request: { url }, logger };
5456
}
5557

56-
it("summarizes successfully (fullTree gate off)", async () => {
58+
it("summarizes successfully (fullTree gate off)", async function () {
59+
if (provider.driver.type !== "odsp") {
60+
this.skip();
61+
}
5762
const props = await buildLoadProps();
5863
const result: LoadSummarizerSummaryResult =
5964
await loadSummarizerContainerAndMakeSummary(props);
@@ -82,7 +87,10 @@ describeCompat("on-demand summarizer api", "NoCompat", (getTestObjectProvider, a
8287
);
8388
});
8489

85-
it("summarizes successfully with fullTree gate on", async () => {
90+
it("summarizes successfully with fullTree gate on", async function () {
91+
if (provider.driver.type !== "odsp") {
92+
this.skip();
93+
}
8694
const props = await buildLoadProps();
8795
const configProvider = {
8896
getRawConfig: (key: string) =>
@@ -125,8 +133,10 @@ describeCompat("on-demand summarizer api", "NoCompat", (getTestObjectProvider, a
125133
assert(!("receivedSummaryAck" in endEvent), "end event should omit receivedSummaryAck");
126134
});
127135

128-
it("clients with summaries disabled can make changes and load from on-demand summary", async () => {
129-
const provider = getTestObjectProvider();
136+
it("clients with summaries disabled can make changes and load from on-demand summary", async function () {
137+
if (provider.driver.type !== "odsp") {
138+
this.skip();
139+
}
130140
// Config for clients that opt out of summarization.
131141
const clientConfig: ITestContainerConfig = {
132142
fluidDataObjectType: DataObjectFactoryType.Test,

0 commit comments

Comments
 (0)