test fails sometimes from a race to check value (#5720)
test fails sometimes from a race to check value (#5720)

* test fails sometimes from a race to check value

* add while limit
JKarathiya/Lean,AlexCatarino/Lean,StefanoRaggi/Lean,StefanoRaggi/Lean,AlexCatarino/Lean,StefanoRaggi/Lean,QuantConnect/Lean,jameschch/Lean,QuantConnect/Lean,JKarathiya/Lean,jameschch/Lean,StefanoRaggi/Lean,jameschch/Lean,jameschch/Lean,jameschch/Lean,StefanoRaggi/Lean,AlexCatarino/Lean,QuantConnect/Lean,AlexCatarino/Lean,JKarathiya/Lean,JKarathiya/Lean,QuantConnect/Lean