Skip to content

Commit

Permalink
Corrected XFail mark in modbus_tk/tests/test_battery_meter.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidraker committed Oct 3, 2023
1 parent 2e42775 commit b58956d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from struct import pack, unpack

from volttron.platform import get_services_core, jsonapi
from volttrontesting.utils.utils import get_rand_ip_and_port
from volttrontesting.utils.utils import get_rand_ip_and_port, is_running_in_container
from platform_driver.interfaces.modbus_tk.server import Server
from platform_driver.interfaces.modbus_tk.maps import Map, Catalog
from volttron.platform.agent.known_identities import PLATFORM_DRIVER
Expand Down Expand Up @@ -387,7 +387,7 @@ def scrape_all(self, agent, device_name):
return agent.vip.rpc.call(PLATFORM_DRIVER, 'scrape_all', device_name)\
.get(timeout=10)

@pytest.mark.xfail('Fails to set points, only on this test device. Further investigation required.')
@pytest.mark.xfail(is_running_in_container(), reason='Fails to set points on this test setup, only in Docker.')
def test_scrape_all(self, agent):
for key in registers_dict.keys():
self.set_point(agent, 'modbus_tk', key, registers_dict[key])
Expand Down

0 comments on commit b58956d

Please sign in to comment.