Skip to content

Commit

Permalink
hooks method should return Seq
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Jul 16, 2023
1 parent c2e7177 commit a0dea4a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ class DefaultSlickApiSpec extends Specification { self =>
// A new injector should be created to ensure each test is independent of each other
def injector: Injector = GuiceApplicationBuilder(configuration = TestData.configuration).injector()

def hooks(lifecycle: DefaultApplicationLifecycle): Array[_] = {
def hooks(lifecycle: DefaultApplicationLifecycle): Seq[_] = {
val hooksField = lifecycle.getClass.getDeclaredField("hooks")
hooksField.setAccessible(true)
hooksField.get(lifecycle).asInstanceOf[ConcurrentLinkedDeque[_]].toArray()
hooksField.get(lifecycle).asInstanceOf[ConcurrentLinkedDeque[_]].toArray().toSeq
}

"DefaultSlickApi" should {
Expand Down

0 comments on commit a0dea4a

Please sign in to comment.