Getting below test failure on running make test with latest unstable:

[36/68 done]: integration/dismiss-mem (7 seconds)
Testing unit/limits
[ok]: CONFIG sanity
[ok]: Dumping an RDB
Forcing process 6494 to exit...
[ok]: PSYNC2 #3899 regression: verify consistency
Forcing process 6494 to exit...
Forcing process 6494 to exit...
[ok]: Scan mode
[err]: client freed during loading in tests/integration/rdb.tcl
Expected '0' to be equal to '1' (context: type eval line 10 cmd {assert_equal [s loading] 1} proc ::start_server)
[ok]: CONFIG REWRITE sanity

Error -

[err]: client freed during loading in tests/integration/rdb.tcl
Expected '0' to be equal to '1' (context: type eval line 10 cmd {assert_equal [s loading] 1} proc ::start_server)

Host OS - macOS Big Sur (v11.4) Docker Image - Debian Buster (v10) Docker Engine - v20.10.8

Comment From: oranagra

this may be a timing issue, if your system is very very slow. key-load-delay 50 (microseconds), and 100k keys, should take 5 seconds to load. maybe the tcl code is so slow, so by the time it gets to the first assert_equal [s loading] 1 the 5 seconds have passed.

@dipAch is this failure consistent? can you try to change the key-load-delay to be higher?