Skip to content

runBlockingTestProvided fix

Pre-release
Pre-release
Compare
Choose a tag to compare
@RBusarow RBusarow released this 13 Jan 01:26
a03b6a0

Features

  • Added CoroutineScope factories which take CoroutineContext as a sole parameter for complex CoroutineScope creation.

Test features

  • Added TestBasicDispatcherProvider factory which uses CommonPool for default and io, but a shared single-threaded ExecutorCoroutineDispatcher for main and mainImmediate to provide "natural" dispatch behavior in tests without Dispatchers.setMain(...).

Bug fixes and improvements

  • runBlockingTestProvided now uses the same TestCoroutineDispatcher as its ContinuationInterceptor and in its TestDispatcherProvider (#15).
  • runBlockingProvided now uses TestBasicDispatcherProvider as its DispatcherProvider.