Skip to content

Commit 634f909

Browse files
committed
test(proxy): update proxy port
1 parent 86e6cc5 commit 634f909

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

test/automation/api/crawlFile.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const storeDirs = path.resolve(__dirname, './upload')
1717
async function testCrawlFile() {
1818
const testCrawlApp = createCrawl({
1919
log: false,
20-
proxy: { urls: ['http://localhost:14892'] }
20+
proxy: { urls: ['http://localhost:7890'] }
2121
})
2222

2323
const res = await testCrawlApp.crawlFile({

test/automation/api/crawlHTML.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const createCrawl = (
99
async function testCrawlHTML() {
1010
const testCrawlApp = createCrawl({
1111
log: false,
12-
proxy: { urls: ['http://localhost:14892'] }
12+
proxy: { urls: ['http://localhost:7890'] }
1313
})
1414

1515
const res = await testCrawlApp.crawlHTML({

test/automation/api/crawlPage.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const createCrawl = (
99
async function testCrawlPage() {
1010
const testCrawlApp = createCrawl({
1111
log: false,
12-
proxy: { urls: ['http://localhost:14892'] }
12+
proxy: { urls: ['http://localhost:7890'] }
1313
})
1414

1515
const res = await testCrawlApp.crawlPage({

test/automation/arguments/proxy.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async function proxy() {
1313
targets: ['https://', 'http://localhost:8888/html'],
1414
maxRetry: 3,
1515
proxy: {
16-
urls: ['http://localhost:129032', 'http://localhost:14892'],
16+
urls: ['http://localhost:129032', 'http://localhost:7890'],
1717
switchByErrorCount: 2
1818
}
1919
})

test/automation/written/crawlData.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async function loaderBaseConfig() {
5959
const testCrawlApp = createCrawl({
6060
log: false,
6161
baseUrl: 'http://localhost:8888',
62-
proxy: { urls: ['http://localhost:14892'] },
62+
proxy: { urls: ['http://localhost:7890'] },
6363
timeout: 10000,
6464
intervalTime: { max: 1000 },
6565
maxRetry: 0
@@ -79,7 +79,7 @@ async function loaderAdvancedConfig() {
7979

8080
const res = await testCrawlApp.crawlData({
8181
targets: ['/data', '/data'],
82-
proxy: { urls: ['http://localhost:14892'] },
82+
proxy: { urls: ['http://localhost:7890'] },
8383
timeout: 10000,
8484
intervalTime: { max: 1000 },
8585
maxRetry: 0

test/automation/written/crawlFile.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const storeDirs = path.resolve(__dirname, './upload')
1919
async function writtenCrawlFileDetailConfig() {
2020
const testCrawlApp = createCrawl({
2121
log: false,
22-
proxy: { urls: ['http://localhost:14892'] }
22+
proxy: { urls: ['http://localhost:7890'] }
2323
})
2424

2525
const res = await testCrawlApp.crawlFile({
@@ -34,7 +34,7 @@ async function writtenCrawlFileDetailConfig() {
3434
async function writtenCrawlFileDetailConfigArr() {
3535
const testCrawlApp = createCrawl({
3636
log: false,
37-
proxy: { urls: ['http://localhost:14892'] }
37+
proxy: { urls: ['http://localhost:7890'] }
3838
})
3939

4040
const res = await testCrawlApp.crawlFile(
@@ -51,7 +51,7 @@ async function writtenCrawlFileDetailConfigArr() {
5151
async function writtenCrawlFileAdvancedConfig() {
5252
const testCrawlApp = createCrawl({
5353
log: false,
54-
proxy: { urls: ['http://localhost:14892'] }
54+
proxy: { urls: ['http://localhost:7890'] }
5555
})
5656

5757
const res = await testCrawlApp.crawlFile({
@@ -72,7 +72,7 @@ async function loaderBaseConfig() {
7272
log: false,
7373
baseUrl:
7474
'https://raw.githubusercontent.com/coder-hxl/airbnb-upload/master/area',
75-
proxy: { urls: ['http://localhost:14892'] },
75+
proxy: { urls: ['http://localhost:7890'] },
7676
timeout: 10000,
7777
intervalTime: { max: 1000 },
7878
maxRetry: 0
@@ -96,7 +96,7 @@ async function loaderAdvancedConfig() {
9696

9797
const res = await testCrawlApp.crawlFile({
9898
targets: ['/4401.jpg', '/4403.jpg'],
99-
proxy: { urls: ['http://localhost:14892'] },
99+
proxy: { urls: ['http://localhost:7890'] },
100100
timeout: 10000,
101101
storeDirs,
102102
intervalTime: { max: 1000 },
@@ -112,7 +112,7 @@ async function storeConfig() {
112112
log: false,
113113
baseUrl:
114114
'https://raw.githubusercontent.com/coder-hxl/airbnb-upload/master/area',
115-
proxy: { urls: ['http://localhost:14892'] }
115+
proxy: { urls: ['http://localhost:7890'] }
116116
})
117117

118118
const record: string[] = []

test/automation/written/crawlHTML.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async function loaderBaseConfig() {
5959
const testCrawlApp = createCrawl({
6060
log: false,
6161
baseUrl: 'http://localhost:8888',
62-
proxy: { urls: ['http://localhost:14892'] },
62+
proxy: { urls: ['http://localhost:7890'] },
6363
timeout: 10000,
6464
intervalTime: { max: 1000 },
6565
maxRetry: 0
@@ -79,7 +79,7 @@ async function loaderAdvancedConfig() {
7979

8080
const res = await testCrawlApp.crawlHTML({
8181
targets: ['/html', '/html'],
82-
proxy: { urls: ['http://localhost:14892'] },
82+
proxy: { urls: ['http://localhost:7890'] },
8383
timeout: 10000,
8484
intervalTime: { max: 1000 },
8585
maxRetry: 0

test/automation/written/crawlPage.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function writtenString() {
2222
async function writtenCrawlPageDetailConfig() {
2323
const testCrawlApp = createCrawl({
2424
log: false,
25-
proxy: { urls: ['http://localhost:14892'] }
25+
proxy: { urls: ['http://localhost:7890'] }
2626
})
2727

2828
const res = await testCrawlApp.crawlPage({
@@ -38,7 +38,7 @@ async function writtenCrawlPageDetailConfig() {
3838
async function writtenStringAndCrawlPageDetailConfigArr() {
3939
const testCrawlApp = createCrawl({
4040
log: false,
41-
proxy: { urls: ['http://localhost:14892'] }
41+
proxy: { urls: ['http://localhost:7890'] }
4242
})
4343

4444
const res = await testCrawlApp.crawlPage([
@@ -55,7 +55,7 @@ async function writtenStringAndCrawlPageDetailConfigArr() {
5555
async function writtenCrawlPageAdvancedConfig() {
5656
const testCrawlApp = createCrawl({
5757
log: false,
58-
proxy: { urls: ['http://localhost:14892'] }
58+
proxy: { urls: ['http://localhost:7890'] }
5959
})
6060

6161
const res = await testCrawlApp.crawlPage({
@@ -76,7 +76,7 @@ async function loaderBaseConfig() {
7676
const testCrawlApp = createCrawl({
7777
log: false,
7878
baseUrl: 'http://localhost:8888',
79-
proxy: { urls: ['http://localhost:14892'] },
79+
proxy: { urls: ['http://localhost:7890'] },
8080
timeout: 10000,
8181
intervalTime: { max: 1000 },
8282
maxRetry: 0
@@ -98,7 +98,7 @@ async function loaderAdvancedConfig() {
9898

9999
const res = await testCrawlApp.crawlPage({
100100
targets: ['/html', '/html'],
101-
proxy: { urls: ['http://localhost:14892'] },
101+
proxy: { urls: ['http://localhost:7890'] },
102102
timeout: 10000,
103103
intervalTime: { max: 1000 },
104104
maxRetry: 0

0 commit comments

Comments
 (0)