Skip to content

Commit f0e3616

Browse files
committed
undo java changes :thonk:
1 parent 1271eb1 commit f0e3616

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

tests/Solution.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ public static void main(String... args) {
55
if (line.contains("w")) { // Invalid output
66
System.out.println(line);
77
} else if (line.contains("2")) { // Timeout
8-
try {
9-
while (true) Thread.sleep(10_000); // Shouldn't take more than 10s, but if it does, then loop.
10-
} catch (Exception e) {
11-
throw new RuntimeException(e);
12-
}
8+
while (true);
139
} else { // correct output
1410
char[] chars = line.toCharArray();
1511
for (int i = 0; i < chars.length / 2; ++i) {

tests/java.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async fn java_success() -> Result<(), Box<dyn Error>> {
2323
.run_command(["java", "Solution"])
2424
.rules(rules)
2525
.max_memory(MemorySize::from_mb(800))
26-
.timeout(Duration::from_secs(3))
26+
.timeout(Duration::from_secs(5))
2727
.trim_output(true)
2828
.build();
2929

0 commit comments

Comments
 (0)