Skip to content

Commit

Permalink
Merge pull request #404 from iExecBlockchainComputing/feature/dataset…
Browse files Browse the repository at this point in the history
…-checksum

Init for dataset checksum
  • Loading branch information
jeremyjams authored Mar 23, 2021
2 parents 26fca1f + 76e4fdc commit a5452aa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=5.1.0-rc3
iexecCommonVersion=5.2.0-rc1
version=5.2.0-SNAPSHOT
iexecCommonVersion=5.3.0-SNAPSHOT
nexusUser=fake
nexusPassword=fake
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ TaskNotificationType getNextActionWhenStatusAndCause(ReplicateStatus whenStatus,
return PLEASE_ABORT;
case DATA_DOWNLOAD_FAILED:
if (whenCause.equals(ReplicateStatusCause.DATASET_FILE_DOWNLOAD_FAILED)
|| whenCause.equals(ReplicateStatusCause.DATASET_FILE_BAD_CHECKSUM)
|| whenCause.equals(ReplicateStatusCause.INPUT_FILES_DOWNLOAD_FAILED)){
return PLEASE_CONTRIBUTE;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ public void shouldGetNextActionOnDataDownloadFailedWithDatasetDownloadFailed(){
.isEqualTo(TaskNotificationType.PLEASE_CONTRIBUTE);
}

@Test
public void shouldGetNextActionOnDataDownloadFailedWithDatasetBadChecksum(){
assertThat(replicateWorkflow
.getNextAction(ReplicateStatus.DATA_DOWNLOAD_FAILED,
ReplicateStatusCause.DATASET_FILE_BAD_CHECKSUM))
.isEqualTo(TaskNotificationType.PLEASE_CONTRIBUTE);
}

@Test
public void shouldGetNextActionOnDataDownloadFailedWithInputFilesDownloadFailed(){
assertThat(replicateWorkflow
Expand Down

0 comments on commit a5452aa

Please sign in to comment.