Skip to content

Use date.monotonic() to handle date change#815

Open
iwanb wants to merge 1 commit intopexpect:masterfrom
iwanb:patch-1
Open

Use date.monotonic() to handle date change#815
iwanb wants to merge 1 commit intopexpect:masterfrom
iwanb:patch-1

Conversation

@iwanb
Copy link

@iwanb iwanb commented Feb 21, 2025

The expect wait function computed the timeout
based on the current time,
if the system date changes during the wait,
the timeout would be wrongly computed.

I noticed this on a test system where the script was changing the system time, that would lead to an overflow error:

OverflowError: timeout is too large

The expect wait function computed the timeout
based on the current time,
if the system date changes during the wait,
the timeout would be wrongly computed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant