Add delays to make C++ ITs more reliable

Also disable PCM tests until it's actually wired right

Change-Id: I431031f66aaaa87fa201e577fedef5a1952c1bb4
This commit is contained in:
Thomas Clark
2014-08-15 11:22:01 -04:00
parent 6b3e2690d0
commit d466d17edd
6 changed files with 46 additions and 33 deletions

View File

@@ -9,7 +9,7 @@
#include "gtest/gtest.h"
#include "TestBench.h"
static const double kDelayTime = 0.001;
static const double kDelayTime = 0.01;
class FakeEncoderTest : public testing::Test {
protected:
@@ -42,6 +42,10 @@ TEST_F(FakeEncoderTest, TestDefaultState) {
* Test the encoder by setting the digital outputs and reading the value.
*/
TEST_F(FakeEncoderTest, TestCountUp) {
m_outputA->Set(false);
m_outputB->Set(false);
m_encoder->Reset();
//Sets the outputs such that the encoder moves in the positive direction
for(int i = 0; i < 100; i++) {
m_outputA->Set(true);