Skip to content

Commit

Permalink
Unit tests: force publishOnChange interval to 0
Browse files Browse the repository at this point in the history
  - The test was intended to run with a default interval of 0, changing the default we need to manually force interval to 0
  • Loading branch information
pennam committed Jan 10, 2024
1 parent d1e2fc8 commit 349ae46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/test/src/test_publishOnChange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SCENARIO("An Arduino cloud property is published on value change", "[ArduinoClou
CloudInt test = 10;
int const DELTA = 6;

addPropertyToContainer(property_container, test, "test", Permission::ReadWrite).publishOnChange(DELTA);
addPropertyToContainer(property_container, test, "test", Permission::ReadWrite).publishOnChange(DELTA,0);

WHEN("test = 10, delta = 6, the property is encoded for the 1st time") {
THEN("The property should be encoded") {
Expand Down

0 comments on commit 349ae46

Please sign in to comment.