Adding a fix for unending wait
This is related to #335987 (closed)
Due to the the notice The project was successfully imported.
not always showing up anymore, this fix should provide a solution by adding another check that if that one is true it will continue with the test.
Note
This seems to be happening sporadically so to improve the test I would still suggest this change.
Edited by Tomislav Nikić