Skip to content

Commit

Permalink
Fix typo in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rias committed Jun 6, 2019
1 parent aaf2938 commit dc5fc87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/CrawlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public function it_should_handle_redirects_correctly_when_tracking_is_active()
],
])
->setCrawlObserver(new CrawlLogger())
->startCrawling('http://localhost:8080/dir1/infernal-redirect-entry/');
->startCrawling('http://localhost:8080/dir1/internal-redirect-entry/');

This comment has been minimized.

Copy link
@Redominus

Redominus Jun 6, 2019

Contributor

It was really infernal. When, a monday morning, I found the crawler on a relative small website at 900k queued urls. 😝
Thanks for merging 😄 😄


$this->assertCrawledUrlCount(3);
}
Expand Down
10 changes: 5 additions & 5 deletions tests/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ app.get('/meta-nofollow', function (request, response) {
response.end('<html><head>\n<meta name="robots" content="index, nofollow">\n</head><body><a href="/meta-nofollow-target">no follow it</a></body></html>');
});

app.get('/dir1/infernal-redirect-entry/', function (request, response) {
response.end('<a href="../loop-generator/infernal-redirect/trapped/">trapped</a> <a href="../../dir1/infernal-redirect/trap/">trap-start</a>');
app.get('/dir1/internal-redirect-entry/', function (request, response) {
response.end('<a href="../loop-generator/internal-redirect/trapped/">trapped</a> <a href="../../dir1/internal-redirect/trap/">trap-start</a>');
});

app.get('/dir1/infernal-redirect/trap/', function (request, response) {
response.redirect(301, '/dir1/infernal-redirect-entry/');
app.get('/dir1/internal-redirect/trap/', function (request, response) {
response.redirect(301, '/dir1/internal-redirect-entry/');
});

app.get('/dir1/loop-generator/infernal-redirect/trapped/', function (request, response) {
app.get('/dir1/loop-generator/internal-redirect/trapped/', function (request, response) {
response.end('It should be crawled once');
});

Expand Down

0 comments on commit dc5fc87

Please sign in to comment.