destroy() shuts down the taskScheduler

Issue gh-15735
This commit is contained in:
Rob Winch
2024-10-01 08:50:41 -05:00
parent 50cc36d53e
commit 4f328c9503
2 changed files with 11 additions and 2 deletions

View File

@@ -68,8 +68,9 @@ public class JdbcOneTimeTokenServiceTests {
}
@AfterEach
public void tearDown() {
public void tearDown() throws Exception {
this.db.shutdown();
this.oneTimeTokenService.destroy();
}
private static EmbeddedDatabase createDb() {