Skip to content

Commit

Permalink
#251: Fix test un-needed repeats
Browse files Browse the repository at this point in the history
  • Loading branch information
ataffanel committed Dec 5, 2017
1 parent 18cdacf commit 48f91b8
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions test/deck/drivers/src/TestLpsTdoaTag.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,6 @@ void testMissingTimestampInhibitsClockDriftCalculationInFirstIteration() {
mockKalmanEstimator(5, 0, -expectedDiff);
mockKalmanEstimator(0, 5, expectedDiff);

lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);

// Test
Expand Down Expand Up @@ -417,10 +413,6 @@ void testMissingPacketAnchorToAnchorInhibitsDiffCalculation() {
// mockKalmanEstimator(5, 0, -expectedDiff);
mockKalmanEstimator(0, 5, expectedDiff);

lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);

// Test
Expand Down Expand Up @@ -481,10 +473,6 @@ void testMissingAnchorToAnchorDistanceInhibitsDiffCalculation() {
// mockKalmanEstimator(5, 0, -expectedDiff);
mockKalmanEstimator(0, 5, expectedDiff);

lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);

// Test
Expand Down Expand Up @@ -544,10 +532,6 @@ void testMissingPacketPacketAnchorToAnchorInhibitsDiffCalculation() {
// mockKalmanEstimator(5, 0, -expectedDiff);
mockKalmanEstimator(0, 5, expectedDiff);

lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);

// Test
Expand Down Expand Up @@ -607,10 +591,6 @@ void testMissingPacketPacketAnchorToAnchorInhibitsDiffCalculationWhenSequenceNrW
// mockKalmanEstimator(5, 0, -expectedDiff);
mockKalmanEstimator(0, 5, expectedDiff);

lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);

// Test
Expand Down Expand Up @@ -679,11 +659,6 @@ void testMissingPacketAnchorToTagInhibitsDiffCalculation() {
// Not called since previous packet from same anchor was lost
// mockKalmanEstimator(5, 0, -expectedDiff);

lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);

// Test
Expand Down Expand Up @@ -902,8 +877,6 @@ void verifyDifferenceOfDistanceWithNoClockDriftButConfigurableClockOffset(uint64
// Only the last message will create calls to the estimator. The two first are discarded due to missing data.
mockKalmanEstimator(0, 1, expectedDiff);

lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);

// Test
Expand Down Expand Up @@ -966,10 +939,6 @@ void verifyDifferenceOfDistanceWithTwoAnchors3FramesWithClockDrift(float driftTa
mockKalmanEstimator(5, 0, -expectedDiff);
mockKalmanEstimator(0, 5, expectedDiff);

lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);
lpsGetLppShort_IgnoreAndReturn(false);

// Test
Expand Down

0 comments on commit 48f91b8

Please sign in to comment.