File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,12 @@ class SubmissionScenario implements Scenario {
3030 const testCasesDir = path . join ( currentJobDir , 'testcases' )
3131 mkdir ( '-p' , testCasesDir )
3232
33- job . testcases . map ( async testcase => {
33+ return Promise . all ( job . testcases . map ( async testcase => {
3434 const rootDir = path . join ( testCasesDir , '' + testcase . id )
3535 mkdir ( '-p' , rootDir )
36- const input = await download ( testcase . input , rootDir )
37- const output = await download ( testcase . output , rootDir )
38- } )
39-
36+ const input = await download ( testcase . input , path . join ( rootDir , 'stdin' ) )
37+ const output = await download ( testcase . output , path . join ( rootDir , 'stdout' ) )
38+ } ) )
4039 }
4140
4241 async result ( currentJobDir : string ) : Promise < SubmissionResult > {
You can’t perform that action at this time.
0 commit comments