Skip to content

Commit cf9e48e

Browse files
kalyazinroypat
authored andcommitted
test(api): exclude /snapshot/load from duration check
When restoring from snapshot via UFFD, if the UFFD handler is eager enough (eg like the fault-all handler we use for testing), memory population for a sufficiently large VM may take longer than the limit we have. Signed-off-by: Nikita Kalyazin <[email protected]>
1 parent 99b7e2c commit cf9e48e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/framework/microvm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def _validate_api_response_times(self):
390390
"Got API call duration log entry before request entry"
391391
)
392392

393-
if current_call.url != "/snapshot/create":
393+
if current_call.url not in ["/snapshot/create", "/snapshot/load"]:
394394
exec_time = float(match.group("execution_time")) / 1000.0
395395

396396
assert (

0 commit comments

Comments
 (0)