Skip to content

Commit 08caeea

Browse files
committed
Exclude the agent device as well
1 parent b7ab166 commit 08caeea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_package/mqtt_entity_sink_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ TEST_F(MqttEntitySinkTest, mqtt_entity_sink_should_handle_unavailable)
634634
const std::string& payload) {
635635

636636
json j = json::parse(payload);
637-
if (j["category"] != "CONDITION")
637+
if (j["category"] != "CONDITION" && topic.starts_with("MTConnect/Devices/000/Observations/"))
638638
{
639639
if (j["result"] == "UNAVAILABLE")
640640
{

0 commit comments

Comments
 (0)