fixed tests

This commit is contained in:
Erik Frojdh
2020-07-24 15:45:21 +02:00
parent cf2e1c1dfc
commit 21c8b77e2c
2 changed files with 24 additions and 17 deletions

View File

@ -36,6 +36,7 @@ TEST_CASE("rx_version", "[.cmd][.rx][.new]") {
TEST_CASE("rx_start", "[.cmd][.rx][.new]") {
Detector det;
CmdProxy proxy(&det);
det.setFileWrite(false); //avoid writing or error on file creation
// PUT only command
REQUIRE_THROWS(proxy.Call("rx_start", {}, -1, GET));
{
@ -69,6 +70,7 @@ TEST_CASE("rx_stop", "[.cmd][.rx][.new]") {
TEST_CASE("rx_status", "[.cmd][.rx][.new]") {
Detector det;
det.setFileWrite(false); //avoid writing or error on file creation
CmdProxy proxy(&det);
det.startReceiver();
{
@ -89,6 +91,7 @@ TEST_CASE("rx_framescaught", "[.cmd][.rx][.new]") {
CmdProxy proxy(&det);
// This ensures 0 caught frames
det.setFileWrite(false); //avoid writing or error on file creation
det.startReceiver();
det.stopReceiver();
{
@ -110,6 +113,7 @@ TEST_CASE("rx_framescaught", "[.cmd][.rx][.new]") {
TEST_CASE("rx_missingpackets", "[.cmd][.rx][.new]") {
Detector det;
det.setFileWrite(false); //avoid writing or error on file creation
CmdProxy proxy(&det);
{
// some missing packets