Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, axiosInst
configuration.isValid();

const retryParams = axiosArgs.options?.retryParams ? axiosArgs.options?.retryParams : configuration.retryParams;
const maxRetry: number = retryParams?.maxRetry ?? 0;
const minWaitInMs: number = retryParams?.minWaitInMs ?? 0;
const maxRetry: number = retryParams?.maxRetry ?? SdkConstants.DefaultMaxRetry;
const minWaitInMs: number = retryParams?.minWaitInMs ?? SdkConstants.DefaultMinWaitInMs;

const start = performance.now();
Comment thread
Abishek-Newar marked this conversation as resolved.

Expand Down
2 changes: 1 addition & 1 deletion tests/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,7 @@ describe("OpenFGA Client", () => {
user: "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
object: "workspace:1",
relations: ["admin", "guest", "reader", "viewer"],
});
Comment thread
Abishek-Newar marked this conversation as resolved.
}, { retryParams: { maxRetry: 0 } });
} catch (err) {
expect(scope0.isDone()).toBe(true);
expect(scope1.isDone()).toBe(true);
Expand Down
Loading