Skip to content

Commit

Permalink
Channel is now shutdown before embedded server.
Browse files Browse the repository at this point in the history
  • Loading branch information
ppanopticon committed May 21, 2021
1 parent a075e62 commit 54254ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ class DDLServiceTest {

@AfterAll
fun cleanup() {
this.embedded.stop()

/* Shutdown ManagedChannel. */
this.channel.shutdown()
this.channel.awaitTermination(5000, TimeUnit.MILLISECONDS)

/* Stop embedded server. */
this.embedded.stop()
this.embedded.stop()
}

@BeforeEach
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ class DQLServiceTest {
@AfterAll
fun cleanup() {
dropTestSchema(client)
this.embedded.stop()

/* Shutdown ManagedChannel. */
this.channel.shutdown()
this.channel.awaitTermination(5000, TimeUnit.MILLISECONDS)

/* Stop embedded server. */
this.embedded.stop()
}

@BeforeEach
Expand Down

0 comments on commit 54254ec

Please sign in to comment.