@@ -23,15 +23,15 @@ const TEST_HOST = `http://${DOCKER_HOST_NAME}:31502`;
2323beforeAll ( ( ) => {
2424 proc = spawn ( "../../node_modules/.bin/http-server" , [ "-p" , "31502" ] , { cwd : "tests/fixtures/" } ) ;
2525 execSync ( "docker network create crawl" ) ;
26- redisId = execSync ( "docker run --rm --network=crawl -p 36399:6379 --name redis -d redis" ) ;
26+ redisId = execSync ( "docker run --rm --network=seedfilecrawl -p 36399:6379 --name redis -d redis" ) ;
2727} ) ;
2828
2929afterAll ( ( ) => {
3030 if ( proc ) {
3131 proc . kill ( ) ;
3232 }
3333 execSync ( `docker kill ${ redisId } ` ) ;
34- execSync ( "docker network rm crawl " ) ;
34+ execSync ( "docker network rm seedfilecrawl " ) ;
3535} ) ;
3636
3737
@@ -145,7 +145,7 @@ test("check that URLs in seed-list are added to Redis then interrupt crawl", asy
145145
146146 try {
147147 containerId = execSync (
148- `docker run -d -v $PWD/test-crawls:/crawls -v $PWD/tests/fixtures:/tests/fixtures -e CRAWL_ID=seed-file-restart-test --network=crawl --rm webrecorder/browsertrix-crawler crawl --debugAccessRedis --redisStoreUrl redis://redis:6379 --seedFile "${ TEST_HOST } /urlSeedFile.txt" --limit 10 --behaviors "" --exclude community --scopeType page --extraHops 1` ,
148+ `docker run -d -v $PWD/test-crawls:/crawls -v $PWD/tests/fixtures:/tests/fixtures -e CRAWL_ID=seed-file-restart-test --network=seedfilecrawl --rm webrecorder/browsertrix-crawler crawl --debugAccessRedis --redisStoreUrl redis://redis:6379 --seedFile "${ TEST_HOST } /urlSeedFile.txt" --limit 10 --behaviors "" --exclude community --scopeType page --extraHops 1` ,
149149 { encoding : "utf-8" } ,
150150 ) ;
151151 } catch ( error ) {
@@ -199,7 +199,7 @@ test("check that URLs in seed-list are added to Redis then interrupt crawl", asy
199199
200200test ( "check seed file seeds are pulled from Redis on crawl restart and that crawl finishes successfully" , async ( ) => {
201201 const res = execSync (
202- `docker run -d -v $PWD/test-crawls:/crawls -v $PWD/tests/fixtures:/tests/fixtures -e CRAWL_ID=seed-file-restart-test --network=crawl --rm webrecorder/browsertrix-crawler crawl --debugAccessRedis --redisStoreUrl redis://redis:6379 --seedFile "${ TEST_HOST } /urlSeedFile.txt" --limit 10 --behaviors "" --exclude community --scopeType page --extraHops 1` ,
202+ `docker run -d -v $PWD/test-crawls:/crawls -v $PWD/tests/fixtures:/tests/fixtures -e CRAWL_ID=seed-file-restart-test --network=seedfilecrawl --rm webrecorder/browsertrix-crawler crawl --debugAccessRedis --redisStoreUrl redis://redis:6379 --seedFile "${ TEST_HOST } /urlSeedFile.txt" --limit 10 --behaviors "" --exclude community --scopeType page --extraHops 1` ,
203203 { encoding : "utf-8" } ,
204204 ) ;
205205
0 commit comments