Sam Garfinkel
06/04/2020, 8:04 PMbbaldino
06/04/2020, 9:21 PMcontext
in ShouldTest
) were in a coroutine scope, but noticing I can't call launch
in there...am I missing something? Or do I need to create my own?sam
06/04/2020, 10:03 PMsam
06/04/2020, 10:11 PMshould("a test") {
1.shouldBeLessThan(2)
launch { delay(100) }
}
sam
06/04/2020, 10:11 PMcontext("a context") {
should("a test") {
1.shouldBeLessThan(2)
launch { delay(100) }
}
}
bbaldino
06/04/2020, 11:04 PMshould
LeoColman
06/04/2020, 11:04 PMsam
06/04/2020, 11:04 PMLeoColman
06/04/2020, 11:04 PMLeoColman
06/04/2020, 11:05 PMsam
06/04/2020, 11:05 PMLeoColman
06/04/2020, 11:06 PMLeoColman
06/04/2020, 11:06 PMbbaldino
06/04/2020, 11:06 PMsam
06/04/2020, 11:06 PMsam
06/04/2020, 11:06 PMsam
06/04/2020, 11:07 PMsam
06/04/2020, 11:07 PMbbaldino
06/04/2020, 11:07 PM<http://Dispatchers.IO|Dispatchers.IO>
or notsam
06/04/2020, 11:08 PMsam
06/04/2020, 11:08 PMbbaldino
06/04/2020, 11:09 PMsam
06/04/2020, 11:10 PMbbaldino
06/04/2020, 11:10 PMsam
06/04/2020, 11:11 PMsam
06/04/2020, 11:11 PMsam
06/04/2020, 11:11 PMbbaldino
06/04/2020, 11:11 PMPeter
06/05/2020, 5:23 PM@DirtiesContext
- i’m annotating my integration tests with @ContextConfiguration(initializers =
pointing to an initializer to initialize my beans declared with the kotlin functional bean DSL but by the time the second Spec executes, it just references the cached context and doesn’t recreate the ApplicationContext
(which sets up test containers and connection pools etc)Peter
06/05/2020, 5:24 PM@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
or @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_CLASS)
does nothing by the looks of it