Skip to content

Commit

Permalink
fixing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Kavya Srinet committed Feb 2, 2018
1 parent c8d0e4f commit 0f6e0f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paddle/framework/channel_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ TEST(Channel, UnbufferedLessReceiveMoreSendTest) {
ch->Receive(&recv);
EXPECT_EQ(recv, i);
}
std::this_thread::sleep_for(std::chrono::milliseconds(100)); // wait 0.5 sec
std::this_thread::sleep_for(std::chrono::milliseconds(500)); // wait 0.5 sec
EXPECT_EQ(sum_send, 3U);

CloseChannel(ch);
Expand All @@ -217,11 +217,11 @@ TEST(Channel, UnbufferedEmptyReceiveSendReceiveTest) {
// should successfully receive and update the sum
std::thread t([&]() {
int recv;
ch->Receive(&recv); //should block the first time
ch->Receive(&recv); //should block the first time
EXPECT_EQ(recv, i);
sum_recv += recv;
});
std::this_thread::sleep_for(std::chrono::milliseconds(100)); // wait 0.5 sec
std::this_thread::sleep_for(std::chrono::milliseconds(500)); // wait 0.5 sec
EXPECT_EQ(sum_recv, 0U);

ch->Send(&i);
Expand Down

0 comments on commit 0f6e0f1

Please sign in to comment.