Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

Commit

Permalink
added check for crawlInProgress flag
Browse files Browse the repository at this point in the history
  • Loading branch information
a1sabau committed Jul 1, 2018
1 parent db86cbc commit 8e6d671
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/external/storage/test-resource-crawl.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ function testResourceCrawl(GetSetFetch, PluginManager, Storage, conn, ResourceFn
// mark the resource as crawled
await resource.update();

// check crawlInProgress flag
assert.strictEqual(false, resource.crawlInProgress);

// getResourceToCrawl finds no resource with crawledAt value of null
notCrawledResource = await Resource.getResourceToCrawl(site.id);
assert.isNull(notCrawledResource);
Expand Down

0 comments on commit 8e6d671

Please sign in to comment.