Skip to content

Commit 334a047

Browse files
update testcase
1 parent 41ad554 commit 334a047

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/requestTracing.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ describe("request tracing", function () {
114114
it("should have cdn tag in correlation-context header when loadFromCdn is used", async () => {
115115
try {
116116
await loadFromCdn(fakeEndpoint, {
117-
clientOptions
117+
clientOptions,
118+
startupOptions: {
119+
timeoutInMs: 1
120+
}
118121
});
119122
} catch (e) { /* empty */ }
120123
expect(headerPolicy.headers).not.undefined;
@@ -126,7 +129,10 @@ describe("request tracing", function () {
126129
it("should not have cdn tag in correlation-context header when load is used", async () => {
127130
try {
128131
await load(createMockedConnectionString(fakeEndpoint), {
129-
clientOptions
132+
clientOptions,
133+
startupOptions: {
134+
timeoutInMs: 1
135+
}
130136
});
131137
} catch (e) { /* empty */ }
132138
expect(headerPolicy.headers).not.undefined;

0 commit comments

Comments
 (0)