mirror of
https://github.com/certd/certd.git
synced 2026-04-28 07:57:25 +08:00
chore: 网络测试
This commit is contained in:
@@ -129,9 +129,9 @@ async function spawn(opts: SpawnOption): Promise<string> {
|
|||||||
log.error(`child process exited with code ${code}`);
|
log.error(`child process exited with code ${code}`);
|
||||||
const e = new Error(stderr || "return " + code);
|
const e = new Error(stderr || "return " + code);
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
error.stderr = stderr;
|
e.stderr = stderr;
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
error.stdout = stdout;
|
e.stdout = stdout;
|
||||||
reject(e);
|
reject(e);
|
||||||
} else {
|
} else {
|
||||||
resolve(stdout);
|
resolve(stdout);
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/chai": "^4.3.3",
|
"@types/chai": "^4.3.3",
|
||||||
"@types/mocha": "^10.0.0",
|
"@types/mocha": "^10.0.0",
|
||||||
"@types/psl": "^1.1.3",
|
|
||||||
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
||||||
"@typescript-eslint/parser": "^8.26.1",
|
"@typescript-eslint/parser": "^8.26.1",
|
||||||
"chai": "^4.3.6",
|
"chai": "^4.3.6",
|
||||||
|
|||||||
@@ -36,13 +36,11 @@
|
|||||||
"socks-proxy-agent": "^8.0.4",
|
"socks-proxy-agent": "^8.0.4",
|
||||||
"ssh2": "^1.15.0",
|
"ssh2": "^1.15.0",
|
||||||
"strip-ansi": "^7.1.0",
|
"strip-ansi": "^7.1.0",
|
||||||
"tencentcloud-sdk-nodejs": "^4.0.1005",
|
"tencentcloud-sdk-nodejs": "^4.0.1005"
|
||||||
"psl": "^1.9.0"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/chai": "^4.3.3",
|
"@types/chai": "^4.3.3",
|
||||||
"@types/mocha": "^10.0.0",
|
"@types/mocha": "^10.0.0",
|
||||||
"@types/psl": "^1.1.3",
|
|
||||||
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
||||||
"@typescript-eslint/parser": "^8.26.1",
|
"@typescript-eslint/parser": "^8.26.1",
|
||||||
"chai": "^4.3.6",
|
"chai": "^4.3.6",
|
||||||
|
|||||||
@@ -107,8 +107,6 @@ async function runAllTests() {
|
|||||||
// 通过组件引用调用测试方法
|
// 通过组件引用调用测试方法
|
||||||
try {
|
try {
|
||||||
await Promise.allSettled([domainResolveRef.value?.test(), pingTestRef.value?.test(), telnetTestRef.value?.test()]);
|
await Promise.allSettled([domainResolveRef.value?.test(), pingTestRef.value?.test(), telnetTestRef.value?.test()]);
|
||||||
|
|
||||||
message.success("所有测试已完成");
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
message.error("部分测试执行失败,请查看详细结果");
|
message.error("部分测试执行失败,请查看详细结果");
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Generated
-17
@@ -652,9 +652,6 @@ importers:
|
|||||||
'@types/mocha':
|
'@types/mocha':
|
||||||
specifier: ^10.0.0
|
specifier: ^10.0.0
|
||||||
version: 10.0.10
|
version: 10.0.10
|
||||||
'@types/psl':
|
|
||||||
specifier: ^1.1.3
|
|
||||||
version: 1.11.0
|
|
||||||
'@typescript-eslint/eslint-plugin':
|
'@typescript-eslint/eslint-plugin':
|
||||||
specifier: ^8.26.1
|
specifier: ^8.26.1
|
||||||
version: 8.45.0(@typescript-eslint/parser@8.45.0(eslint@8.57.0)(typescript@5.8.3))(eslint@8.57.0)(typescript@5.8.3)
|
version: 8.45.0(@typescript-eslint/parser@8.45.0(eslint@8.57.0)(typescript@5.8.3))(eslint@8.57.0)(typescript@5.8.3)
|
||||||
@@ -730,9 +727,6 @@ importers:
|
|||||||
lodash-es:
|
lodash-es:
|
||||||
specifier: ^4.17.21
|
specifier: ^4.17.21
|
||||||
version: 4.17.21
|
version: 4.17.21
|
||||||
psl:
|
|
||||||
specifier: ^1.15.0
|
|
||||||
version: 1.15.0
|
|
||||||
qiniu:
|
qiniu:
|
||||||
specifier: ^7.12.0
|
specifier: ^7.12.0
|
||||||
version: 7.14.0
|
version: 7.14.0
|
||||||
@@ -761,9 +755,6 @@ importers:
|
|||||||
'@types/mocha':
|
'@types/mocha':
|
||||||
specifier: ^10.0.0
|
specifier: ^10.0.0
|
||||||
version: 10.0.10
|
version: 10.0.10
|
||||||
'@types/psl':
|
|
||||||
specifier: ^1.1.3
|
|
||||||
version: 1.11.0
|
|
||||||
'@typescript-eslint/eslint-plugin':
|
'@typescript-eslint/eslint-plugin':
|
||||||
specifier: ^8.26.1
|
specifier: ^8.26.1
|
||||||
version: 8.45.0(@typescript-eslint/parser@8.45.0(eslint@8.57.0)(typescript@5.8.3))(eslint@8.57.0)(typescript@5.8.3)
|
version: 8.45.0(@typescript-eslint/parser@8.45.0(eslint@8.57.0)(typescript@5.8.3))(eslint@8.57.0)(typescript@5.8.3)
|
||||||
@@ -4612,10 +4603,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-EULJ8LApcVEPbrfND0cRQqutIOdiIgJ1Mgrhpy755r14xMohPTEpkV/k28SJvuOs9bHRFW8x+KeDAEPiGQPB9Q==}
|
resolution: {integrity: sha512-EULJ8LApcVEPbrfND0cRQqutIOdiIgJ1Mgrhpy755r14xMohPTEpkV/k28SJvuOs9bHRFW8x+KeDAEPiGQPB9Q==}
|
||||||
deprecated: This is a stub types definition. parse-path provides its own type definitions, so you do not need this installed.
|
deprecated: This is a stub types definition. parse-path provides its own type definitions, so you do not need this installed.
|
||||||
|
|
||||||
'@types/psl@1.11.0':
|
|
||||||
resolution: {integrity: sha512-OeASqmnreaSJyxwljqCZjRIf7jpbwswaqbSPahE99PZrizNAOXEl9HRWhXvCt3fkAc/WuF8wcZ6zkDHXaE7X4g==}
|
|
||||||
deprecated: This is a stub types definition. psl provides its own type definitions, so you do not need this installed.
|
|
||||||
|
|
||||||
'@types/qs@6.9.18':
|
'@types/qs@6.9.18':
|
||||||
resolution: {integrity: sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==}
|
resolution: {integrity: sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==}
|
||||||
|
|
||||||
@@ -17932,10 +17919,6 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
parse-path: 7.1.0
|
parse-path: 7.1.0
|
||||||
|
|
||||||
'@types/psl@1.11.0':
|
|
||||||
dependencies:
|
|
||||||
psl: 1.15.0
|
|
||||||
|
|
||||||
'@types/qs@6.9.18': {}
|
'@types/qs@6.9.18': {}
|
||||||
|
|
||||||
'@types/range-parser@1.2.7': {}
|
'@types/range-parser@1.2.7': {}
|
||||||
|
|||||||
Reference in New Issue
Block a user