diff options
| author | William A. Kennington III <wak@google.com> | 2019-01-16 15:46:01 -0800 |
|---|---|---|
| committer | William A. Kennington III <wak@google.com> | 2019-01-16 17:04:39 -0800 |
| commit | 5e350795bfc4f100ea00cab34ab9b14bb3106d82 (patch) | |
| tree | c4c8ab889119cdd2a47fe8dfa30ff208231dbac6 /test | |
| parent | 3964f0011097e646f911879969d8c2c194dec090 (diff) | |
| download | phosphor-watchdog-5e350795bfc4f100ea00cab34ab9b14bb3106d82.tar.gz phosphor-watchdog-5e350795bfc4f100ea00cab34ab9b14bb3106d82.zip | |
test/watchdog: Change the time quantum to 0.1s instead of 1s
This improves the runtime of the test suite from 60s down to 6s or less.
Tested:
Run multiple times through the unit test suite without any
flakiness.
Change-Id: Ib7d97ed62b45501db9cf15dba01e33f8f9d07b5d
Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'test')
| -rw-r--r-- | test/watchdog.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/watchdog.hpp b/test/watchdog.hpp index 1139251..df628c3 100644 --- a/test/watchdog.hpp +++ b/test/watchdog.hpp @@ -16,7 +16,7 @@ class WdogTest : public ::testing::Test public: // The unit time used to measure the timer // This should be large enough to accomodate drift - using Quantum = seconds; + using Quantum = duration<uint64_t, std::deci>; // Gets called as part of each TEST_F construction WdogTest() : |

