Skip to content

Commit

Permalink
test and typos corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
mohittahiliani committed Feb 23, 2016
1 parent ec63f17 commit e35d13c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/network/test/pie-queue-test-suite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ PieQueueTestCase::RunPieTest ()
// test 3: more data, but with drops
queue = CreateObject<PieQueue> ();
qSize = modeSize;
NS_TEST_EXPECT_MSG_EQ (queue->SetAttributeFailSafe ("MaxBurstAllowance",DoubleValue (0.1)), true,
"Verify that we can actually set the attribute A");
NS_TEST_EXPECT_MSG_EQ (queue->SetAttributeFailSafe ("MaxBurstAllowance", TimeValue (Seconds (0.1))), true,
"Verify that we can actually set the attribute maxBurst");
Enqueue (queue, pktSize, 300000);
PieQueue::Stats st2 = StaticCast<PieQueue> (queue)->GetStats ();
int drop1;
Expand All @@ -140,8 +140,8 @@ PieQueueTestCase::RunPieTest ()
// test 4: more burst allowance implies more packet drops
queue = CreateObject<PieQueue> ();
qSize = 150 * modeSize;
NS_TEST_EXPECT_MSG_EQ (queue->SetAttributeFailSafe ("MaxBurstAllowance",DoubleValue (0.4)), true,
"Verify that we can actually set the attribute A");
NS_TEST_EXPECT_MSG_EQ (queue->SetAttributeFailSafe ("MaxBurstAllowance", TimeValue (Seconds (0.1))), true,
"Verify that we can actually set the attribute maxBurst");
Enqueue (queue, pktSize, 3000000);
PieQueue::Stats st1 = StaticCast<PieQueue> (queue)->GetStats ();
int drop4;
Expand All @@ -153,8 +153,8 @@ PieQueueTestCase::RunPieTest ()
qSize = 150 * modeSize;
NS_TEST_EXPECT_MSG_EQ (queue->SetAttributeFailSafe ("QueueLimit", UintegerValue (qSize)), true,
"Verify that we can actually set the attribute QueueLimit");
NS_TEST_EXPECT_MSG_EQ (queue->SetAttributeFailSafe ("MaxBurstAllowance",DoubleValue (0.1)), true,
"Verify that we can actually set the attribute A");
NS_TEST_EXPECT_MSG_EQ (queue->SetAttributeFailSafe ("MaxBurstAllowance", TimeValue (Seconds (0.1))), true,
"Verify that we can actually set the attribute maxBurst");
Enqueue (queue, pktSize, 3000000);
PieQueue::Stats stat = StaticCast<PieQueue> (queue)->GetStats ();
int drop5 = stat.unforcedDrop + stat.forcedDrop;
Expand Down

0 comments on commit e35d13c

Please sign in to comment.