Bug 1136252 - Part 3: Remove some unnecessary sleeps in signaling_unittests. r=mt

This commit is contained in:
Byron Campen [:bwc] 2015-03-06 15:16:38 -08:00
parent 9077106c43
commit d085984c4d

View File

@ -3604,7 +3604,6 @@ TEST_F(SignalingAgentTest, CreateOffer) {
TestStunServer::GetInstance()->port()); TestStunServer::GetInstance()->port());
OfferOptions options; OfferOptions options;
agent(0)->CreateOffer(options, OFFER_AUDIO, SHOULD_SENDRECV_AUDIO); agent(0)->CreateOffer(options, OFFER_AUDIO, SHOULD_SENDRECV_AUDIO);
PR_Sleep(20000);
} }
TEST_F(SignalingAgentTest, CreateOfferSetLocalTrickleTestServer) { TEST_F(SignalingAgentTest, CreateOfferSetLocalTrickleTestServer) {
@ -3626,7 +3625,6 @@ TEST_F(SignalingAgentTest, CreateOfferSetLocalTrickleTestServer) {
TestStunServer::GetInstance()->SetActive(true); TestStunServer::GetInstance()->SetActive(true);
agent(0)->SetLocal(TestObserver::OFFER, agent(0)->offer()); agent(0)->SetLocal(TestObserver::OFFER, agent(0)->offer());
PR_Sleep(1000); // Give time for the message queues.
agent(0)->WaitForGather(); agent(0)->WaitForGather();
// Verify that we got our candidates. // Verify that we got our candidates.
@ -4207,7 +4205,7 @@ TEST_P(SignalingTest, AudioCallMismatchDtlsRoles)
WaitForCompleted(); WaitForCompleted();
// Not using ASSERT_TRUE_WAIT here because we expect failure // Not using ASSERT_TRUE_WAIT here because we expect failure
PR_Sleep(kDefaultTimeout * 2); // Wait for some data to get written PR_Sleep(500); // Wait for some data to get written
CloseStreams(); CloseStreams();