Mir

Merge lp:~vanvugt/mir/fix-1252144 into lp:mir

Proposed by Daniel van Vugt
Status: Rejected
Rejected by: Daniel van Vugt
Proposed branch: lp:~vanvugt/mir/fix-1252144
Merge into: lp:mir
Diff against target: 30 lines (+4/-2)
1 file modified
tests/unit-tests/frontend/test_published_socket_connector.cpp (+4/-2)
To merge this branch: bzr merge lp:~vanvugt/mir/fix-1252144
Reviewer Review Type Date Requested Status
Daniel van Vugt Disapprove
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+195549@code.launchpad.net

Commit message

Bump timeouts used in socket testing. It seems 100ms isn't always enough,
which leads to spurious test failures (LP: #1252144)

Description of the change

This proposal has already landed on lp:mir, in a rush to fix the failure blocking package release.

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
Daniel van Vugt (vanvugt) wrote :

Despite having landed in lp:mir already, this fix doesn't work.
https://bugs.launchpad.net/mir/+bug/1252144/comments/7

review: Disapprove

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/unit-tests/frontend/test_published_socket_connector.cpp'
2--- tests/unit-tests/frontend/test_published_socket_connector.cpp 2013-10-24 14:22:27 +0000
3+++ tests/unit-tests/frontend/test_published_socket_connector.cpp 2013-11-18 06:44:32 +0000
4@@ -46,6 +46,8 @@
5
6 namespace
7 {
8+const int timeout_ms = 60 * 1000;
9+
10 class MockConnectorReport : public mf::ConnectorReport
11 {
12 public:
13@@ -96,7 +98,7 @@
14 communicator_report);
15
16 stub_server->comm->start();
17- client = std::make_shared<mt::TestProtobufClient>(test_socket, 100);
18+ client = std::make_shared<mt::TestProtobufClient>(test_socket, timeout_ms);
19 client->connect_parameters.set_application_name(__PRETTY_FUNCTION__);
20 }
21
22@@ -425,7 +427,7 @@
23 int const next_buffer_calls{8};
24 char buffer[128] = {0};
25 sprintf(buffer, "fd://%d", stub_server->comm->client_socket_fd());
26- auto client = std::make_shared<mt::TestProtobufClient>(buffer, 100);
27+ auto client = std::make_shared<mt::TestProtobufClient>(buffer, timeout_ms);
28 client->connect_parameters.set_application_name(__PRETTY_FUNCTION__);
29
30 EXPECT_CALL(*client, connect_done()).Times(1);

Subscribers

People subscribed via source and target branches