Tests: add retries on failed initialization
authorAlberto Mardegan <alberto.mardegan@nokia.com>
Wed, 4 May 2011 10:42:20 +0000 (13:42 +0300)
committerAlberto Mardegan <alberto.mardegan@nokia.com>
Wed, 4 May 2011 10:42:20 +0000 (13:42 +0300)
commit05da9e6cdde213ebd193c03704378853d6ef8a99
tree02e599f14e86bc5e3589d876af7f80d8028ea3d7
parent31f8d565338b0af65b03925623e70ba3e2abd8d5
Tests: add retries on failed initialization

If signond was not already running by the time when tests were started, in some
cases tests could fail with this error: "Server internal error
occurred.Database error occurred.".
The reason is that the SIM initialization takes some time.

This patch fixes that issue by retrying the operation a few times, when it
fails because of that error.
tests/libsignon-qt-tests/ssotestclient.cpp