Skip to content

Commit 105dfc1

Browse files
committed
Merge torrust#1064: torrust#1040: continue when finding errors
a34f66e Fix torrust#1040: `continue` when finding errors (abstralexis) Pull request description: Fix the behaviour of UDP checks exiting on first fail (torrust#1040). Was `break`ing instead of `continue`ing when iterating over each test. ACKs for top commit: josecelano: ACK a34f66e Tree-SHA512: 616c5671f2e6912fb7992794ca634d1402e7d4e712a5dbb5dab498ac67bbf622220f241d84f8ebc3129ba284dca587040a5cca2989023979d2068e458e5382e1
2 parents cb9e345 + a34f66e commit 105dfc1

File tree

1 file changed

+2
-2
lines changed
  • src/console/clients/checker/checks

1 file changed

+2
-2
lines changed

src/console/clients/checker/checks/udp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub async fn run(udp_trackers: Vec<Url>, timeout: Duration) -> Vec<Result<Checks
5050
Err(err) => {
5151
checks.results.push((Check::Setup, Err(err)));
5252
results.push(Err(checks));
53-
break;
53+
continue;
5454
}
5555
};
5656

@@ -65,7 +65,7 @@ pub async fn run(udp_trackers: Vec<Url>, timeout: Duration) -> Vec<Result<Checks
6565
Err(err) => {
6666
checks.results.push((Check::Connect, Err(err)));
6767
results.push(Err(checks));
68-
break;
68+
continue;
6969
}
7070
};
7171

0 commit comments

Comments
 (0)