File tree 4 files changed +18
-8
lines changed
console/atest-ui/src/views
4 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ You could choose the alternative images:
32
32
Docker Hub: docker.io/linuxsuren/api-testing
33
33
GitHub Container Registry: ghcr.io/linuxsuren/api-testing
34
34
Scarf: linuxsuren.docker.scarf.sh/linuxsuren/api-testing
35
+ AliYun: registry.aliyuncs.com/linuxsuren/api-testing
35
36
DaoCloud: docker.m.daocloud.io/linuxsuren/api-testing` ,
36
37
PreRunE : opt .preRunE ,
37
38
RunE : opt .runE ,
Original file line number Diff line number Diff line change @@ -53,10 +53,15 @@ watch(props, () => {
53
53
})
54
54
55
55
function save() {
56
- const oldImportPath = suite .value .spec .rpc .import
57
- if (typeof oldImportPath === ' string' && oldImportPath !== ' ' ) {
58
- const importPath = oldImportPath .split (' ,' )
59
- suite .value .spec .rpc .import = importPath
56
+ let oldImportPath = " "
57
+ let hasImport = false
58
+ if (suite .value .spec && suite .value .spec .rpc ) {
59
+ oldImportPath = suite .value .spec .rpc .import
60
+ hasImport = true
61
+ if (typeof oldImportPath === ' string' && oldImportPath !== ' ' ) {
62
+ const importPath = oldImportPath .split (' ,' )
63
+ suite .value .spec .rpc .import = importPath
64
+ }
60
65
}
61
66
62
67
API .UpdateTestSuite (suite .value , (e ) => {
@@ -69,9 +74,13 @@ function save() {
69
74
ElMessage .error (' Oops, ' + e .message )
70
75
}
71
76
72
- suite .value .spec .rpc .import = oldImportPath
77
+ if (hasImport ) {
78
+ suite .value .spec .rpc .import = oldImportPath
79
+ }
73
80
}, (e ) => {
74
- suite .value .spec .rpc .import = oldImportPath
81
+ if (hasImport ) {
82
+ suite .value .spec .rpc .import = oldImportPath
83
+ }
75
84
ElMessage .error (' Oops, ' + e )
76
85
})
77
86
}
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ interface ImportSource {
76
76
}
77
77
78
78
function UpdateTestSuite ( suite : any ,
79
- callback : ( d : any ) => { } , errHandle ?: ( e : any ) => { } | null ) {
79
+ callback : ( d : any ) => void , errHandle ?: ( e : any ) => void | null ) {
80
80
const requestOptions = {
81
81
method : 'POST' ,
82
82
headers : {
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ func (g *gRPCLoader) DeleteSuite(name string) (err error) {
190
190
191
191
func (g * gRPCLoader ) Verify () (readOnly bool , err error ) {
192
192
// avoid to long to wait the response
193
- ctx , cancel := context .WithTimeout (g .ctx , time .Second * 3 )
193
+ ctx , cancel := context .WithTimeout (g .ctx , time .Second * 5 )
194
194
defer cancel ()
195
195
196
196
var result * server.ExtensionStatus
You can’t perform that action at this time.
0 commit comments