Skip to content

Commit 5bdaf7a

Browse files
authored
Make tests on timeout generate method under test call for all test frameworks #1933 (#1938)
1 parent c47781e commit 5bdaf7a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/services/framework/TestFrameworkManager.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,14 @@ abstract class TestFrameworkManager(val context: CgContext)
203203

204204
abstract fun passArgumentsToArgsVariable(argsVariable: CgVariable, argsArray: CgVariable, executionIndex: Int)
205205

206-
open fun expectTimeout(timeoutMs: Long, block: () -> Unit) {}
206+
/**
207+
* Most frameworks don't have special timeout assertion, so only tested
208+
* method call is generated, while timeout is set using
209+
* [timeout argument][timeoutArgumentName] of the test annotation
210+
*
211+
* @see setTestExecutionTimeout
212+
*/
213+
open fun expectTimeout(timeoutMs: Long, block: () -> Unit): Unit = block()
207214

208215
open fun setTestExecutionTimeout(timeoutMs: Long) {
209216
val timeout = CgNamedAnnotationArgument(

0 commit comments

Comments
 (0)