mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-01 08:39:31 +01:00
Fix MinecraftToDiscordChatMessageTest clearing TestHelper too early
This commit is contained in:
parent
28dbbb8466
commit
e0ec1aa31c
@ -85,17 +85,17 @@ public class MinecraftToDiscordChatMessageTest {
|
||||
new GlobalChannel(MockDiscordSRV.INSTANCE),
|
||||
false
|
||||
));
|
||||
|
||||
try {
|
||||
future.get(40, TimeUnit.SECONDS);
|
||||
} catch (ExecutionException e) {
|
||||
Assertions.fail(e.getCause());
|
||||
} catch (TimeoutException e) {
|
||||
Assertions.fail("Failed to round trip message in 40 seconds", e);
|
||||
}
|
||||
} finally {
|
||||
TestHelper.set(null);
|
||||
}
|
||||
|
||||
try {
|
||||
future.get(40, TimeUnit.SECONDS);
|
||||
} catch (ExecutionException e) {
|
||||
Assertions.fail(e.getCause());
|
||||
} catch (TimeoutException e) {
|
||||
Assertions.fail("Failed to round trip message in 40 seconds", e);
|
||||
}
|
||||
}
|
||||
|
||||
public static class Listener {
|
||||
|
Loading…
Reference in New Issue
Block a user