build-your-own-redis icon indicating copy to clipboard operation
build-your-own-redis copied to clipboard

Add more checks on elapsed time in `test_wait.go`

Open ryan-gang opened this issue 1 year ago • 1 comments

Currently we don't check the time elapsed when the WAIT command is supposed to return early. But, as highlighted by @andy1li, this might lead to cases where user never implements WAIT properly, just sleeps for time_duration, and returns.

This can be mitigated by adding checks on elapsed_time in cases where WAIT returns early.

ryan-gang avatar Feb 29 '24 15:02 ryan-gang