Skip to content

Commit

Permalink
fix trafficgraphdatatests for qt4 (#1699)
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 authored Oct 31, 2017
1 parent 304b886 commit 673e161
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/qt/test/trafficgraphdatatests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,16 @@ void TrafficGraphDataTests::averageBandwidthTest()
}
QCOMPARE(trafficGraphData.getCurrentRangeQueueWithAverageBandwidth().size(), TrafficGraphData::DESIRED_DATA_SAMPLES);
for(auto& sample : trafficGraphData.getCurrentRangeQueueWithAverageBandwidth()){
QCOMPARE(sample.in, 1.0);
QCOMPARE(sample.out, 1.0);
QCOMPARE(sample.in, 1.0f);
QCOMPARE(sample.out, 1.0f);
}

trafficGraphData.switchRange(TrafficGraphData::Range_10m);

QCOMPARE(trafficGraphData.getCurrentRangeQueueWithAverageBandwidth().size(), TrafficGraphData::DESIRED_DATA_SAMPLES / 2);
for(auto& sample : trafficGraphData.getCurrentRangeQueueWithAverageBandwidth()){
QCOMPARE(sample.in, 1.0);
QCOMPARE(sample.out, 1.0);
QCOMPARE(sample.in, 1.0f);
QCOMPARE(sample.out, 1.0f);
}
}

Expand All @@ -217,7 +217,7 @@ void TrafficGraphDataTests::averageBandwidthEvery2EmptyTest()

QCOMPARE(trafficGraphData.getCurrentRangeQueueWithAverageBandwidth().size(), TrafficGraphData::DESIRED_DATA_SAMPLES / 2);
for(auto& sample : trafficGraphData.getCurrentRangeQueueWithAverageBandwidth()){
QCOMPARE(sample.in, 0.5);
QCOMPARE(sample.out, 0.5);
QCOMPARE(sample.in, 0.5f);
QCOMPARE(sample.out, 0.5f);
}
}

0 comments on commit 673e161

Please sign in to comment.