Skip to content

Commit

Permalink
small fix to accepted fields if no test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqua-sc committed May 18, 2024
1 parent 7b91b24 commit 746a319
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ public ResponseEntity<?> submitFile(@RequestParam("file") MultipartFile file, @P
Logger.getLogger("SubmissionController").info("no tests");
submission.setStructureFeedback("No specific structure requested for this project.");
submission.setStructureAccepted(true);
submission.setDockerAccepted(true);
submissionRepository.save(submission);
} else {

// Check file structure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public void testSubmitFile() throws Exception {

/* assertEquals(DockerTestState.running, submission.getDockerTestState()); */ // This executes too quickly so we can't test this

Thread.sleep(1000);
Thread.sleep(2000);

// File repository needs to save again after setting path
verify(fileRepository, times(1)).save(argThat(
Expand Down

0 comments on commit 746a319

Please sign in to comment.