Skip to content

Commit

Permalink
Adjust test fetcher retry parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-scheer committed Mar 20, 2020
1 parent 5f11639 commit 16fef9a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import loadServicesFromStorage = require("../../loadServicesFromStorage");
// Anything wrapped within the gql tag within this file is just a string, not an AST.
const gql = String.raw;

let fetcher: typeof fetch;

const service = {
implementingServicePath: 'service-definition.json',
partialSchemaPath: 'accounts-partial-schema.json',
Expand Down Expand Up @@ -63,14 +61,16 @@ const updatedService = {
`,
};

let fetcher: typeof fetch;

beforeEach(() => {
if (!nock.isActive()) nock.activate();

fetcher = getDefaultGcsFetcher().defaults({
retry: {
retries: GCS_RETRY_COUNT,
minTimeout: 10,
maxTimeout: 100,
minTimeout: 0,
maxTimeout: 0,
},
});
});
Expand Down

0 comments on commit 16fef9a

Please sign in to comment.