diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-05-09 11:20:57 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-05-09 11:20:57 +1000 |
| commit | d739edef761f3bf576dc45da6611279a3f68596e (patch) | |
| tree | 96545a7e590583cd39fd607805985f7e87957e87 /src/drivers/test/test_dac.cpp | |
| parent | 16e6180ba7946119538d03463ea7d37fccc4dcb3 (diff) | |
| download | tangara-fw-d739edef761f3bf576dc45da6611279a3f68596e.tar.gz | |
Fix tests!
Includes removing some that never passed and/or weren't quite a good
idea
Diffstat (limited to 'src/drivers/test/test_dac.cpp')
| -rw-r--r-- | src/drivers/test/test_dac.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/test/test_dac.cpp b/src/drivers/test/test_dac.cpp index fab258e4..01583e34 100644 --- a/src/drivers/test/test_dac.cpp +++ b/src/drivers/test/test_dac.cpp @@ -13,7 +13,9 @@ namespace drivers { TEST_CASE("dac configuration", "[integration]") { I2CFixture i2c; GpioExpander expander; - std::unique_ptr<AudioDac> dac = AudioDac::create(&expander).value(); + cpp::result<AudioDac*, AudioDac::Error> dac_res = AudioDac::create(&expander); + REQUIRE(dac_res.has_value()); + std::unique_ptr<AudioDac> dac(dac_res.value()); auto power_state = dac->ReadPowerState(); |
