Skip to content

Commit d667061

Browse files
committed
chore: fix tests
1 parent 7d6bfe5 commit d667061

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/sdk/tests/index.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,15 +1380,16 @@ describe("createReplaneClient", () => {
13801380
});
13811381

13821382
describe("initialization and fallbacks", () => {
1383-
it("should throw error when SDK key is missing", async () => {
1383+
it("should not throw error when SDK key is missing", async () => {
13841384
await expect(
13851385
createReplaneClient({
13861386
sdkKey: "",
13871387
baseUrl: "https://replane.my-host.com",
13881388
fetchFn: mockServer.fetchFn,
13891389
logger: silentLogger,
1390+
initializationTimeoutMs: 200,
13901391
})
1391-
).rejects.toThrow("SDK key is required");
1392+
).rejects.toThrow("Replane client initialization timed out");
13921393
});
13931394

13941395
it("should use fallbacks and timeout when server does not respond", async () => {

0 commit comments

Comments
 (0)