0

我在使用 cucumber 和 kotlin croutine 时遇到了一些麻烦。

    @Given("clean")
    fun clean() {
        BlockHound.install()
        runBlocking {
            Thread.sleep(100L)
        }
    }

当我在 runBlock 范围内安装 blockhound 并运行 sleep 方法时,什么也没发生。

我的环境是

  • 弹簧启动 2.5.5
  • 爪哇 11
  • 科特林 1.5.31
  • 黄瓜,黄瓜 junit 平台引擎 7.0.0

如何在我的测试方法中运行 blockhound?谢谢你。:)

4

0 回答 0