Merge lp:~townsend/unity/fix-icon-loader-test2 into lp:unity

Proposed by Christopher Townsend
Status: Merged
Approved by: Brandon Schaefer
Approved revision: no longer in the source branch.
Merged at revision: 3516
Proposed branch: lp:~townsend/unity/fix-icon-loader-test2
Merge into: lp:unity
Diff against target: 21 lines (+2/-2)
1 file modified
tests/test_icon_loader.cpp (+2/-2)
To merge this branch: bzr merge lp:~townsend/unity/fix-icon-loader-test2
Reviewer Review Type Date Requested Status
Brandon Schaefer (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+186337@code.launchpad.net

Commit message

Increase the wait timeout to 15 seconds since 1 second didn't seem to make the unit test failure any better. Also add a timeout to the CheckResults method.

Description of the change

= Issue =
The 1 second timeout that I added previously to help some of the TestIconLoader unit tests pass is not sufficient.

= Fix =
Increase the timeout to 15 seconds. Also, I saw that the CheckResults() method was a WaitUntiMSec call that needs to have an increased timeout.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Pass icon loader!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/test_icon_loader.cpp'
2--- tests/test_icon_loader.cpp 2013-09-16 17:51:54 +0000
3+++ tests/test_icon_loader.cpp 2013-09-18 14:30:02 +0000
4@@ -28,7 +28,7 @@
5
6 namespace
7 {
8-const int WAIT_TIMEOUT = 1000;
9+const int WAIT_TIMEOUT = 15000; // 15 seconds
10
11 bool IsValidPixbuf(GdkPixbuf *pixbuf)
12 {
13@@ -73,7 +73,7 @@
14 }
15
16 return got_all;
17- });
18+ }, WAIT_TIMEOUT);
19
20 for (auto const& result : results)
21 {