timeout should be of type Duration? instead of Long?
See original GitHub issueWhich version of Kotest are you using version : 5.5.3
class TimeOutTest : StringSpec({
timeout = 100.milliseconds //error: type Mismatch Type mismatch. Required:Long? Found:Duration
"test case".config(timeout = 400.milliseconds) {
println("hello world!")
}
})
Issue Analytics
- State:
- Created a year ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
The method implicitlyWait(long, TimeUnit) from the type ...
It means the method implicitlyWait(long, TimeUnit) is no more supported and you should use an updated method to serve the same purpose. You...
Read more >Interface WebDriver.Timeouts
Specifies the amount of time the driver should wait when searching for an element if it is not immediately present. Deprecated.
Read more >Add method $.shouldBe(condition, timeout) #1136 - GitHub
Solution. It would be better readable if method name was should / shouldBe / shouldHave instead of waitUntil (but with ...
Read more >The 4 Types of Activity timeouts - Temporal
Practically, if an Activity Execution can take anywhere from 5 minutes to 5 hours, you need to set Start-To-Close to be longer than...
Read more >Configuring timeouts for capturing user input - Amazon Lex
Defines how long Amazon Lex V2 waits before speech input is truncated and the speech is returned to your application. You can increase...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
sorry the 1.22.0-RC2 version was for Detekt plugin. I’m using 5.5.3 version for Kotest
We can’t change it now without breaking everyone’s tests. It’s just a historical artifact that kotest came out before durations existed.
On Wed, Nov 2, 2022, 11:49 AM Anouar Doukkali @.***> wrote: