Skip to content

Commit

Permalink
Increase timeouts for local indexder tests; better naming for test ca…
Browse files Browse the repository at this point in the history
…talogs
  • Loading branch information
chaosrealm committed Oct 31, 2024
1 parent 84d4b8a commit 9ea4503
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/indexers/local/indexers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ beforeEach(async () => {
instructions: ["a", "b"],
};

const catalogName = `catalog-${Math.floor(Math.random() * 10000)}`;
const catalogName = `catalog-${Date.now()}`;
catalog = await testClient.configureCatalog(catalogName, config);
});

Expand All @@ -23,7 +23,7 @@ afterEach(async () => {

test(
"Test catalog.jsonIndexer with custom opts",
{ timeout: 20000 },
{ timeout: 60000 },
async () => {
const docs: JSONDocument[] = [];

Expand Down Expand Up @@ -55,7 +55,7 @@ test(

test(
"Test catalog.jsonIndexer with default opts",
{ timeout: 20000 },
{ timeout: 60000 },
async () => {
const docs: JSONDocument[] = [];

Expand All @@ -81,7 +81,7 @@ test(
},
);

test("Test catalog.directoryIndexer", { timeout: 20000 }, async () => {
test("Test catalog.directoryIndexer", { timeout: 60000 }, async () => {
const indexer = catalog.directoryIndexer({
rootDir: "./src/test_data",
});
Expand All @@ -107,7 +107,7 @@ test(

test(
"Test catalog.tsvIndexer with custom opts",
{ timeout: 20000 },
{ timeout: 60000 },
async () => {
const indexer = catalog.tsvIndexer("./src/test_data/test.tsv", {
getId: (doc) => doc.id,
Expand All @@ -120,7 +120,7 @@ test(
},
);

test("Test catalog.shopifyIndexer", { timeout: 20000 }, async () => {
test("Test catalog.shopifyIndexer", { timeout: 60000 }, async () => {
const indexer = catalog.shopifyIndexer({
shopifyBaseUrl: "https://redsflyfishing.com",
maxItems: 5,
Expand Down

0 comments on commit 9ea4503

Please sign in to comment.