Skip to content

Commit

Permalink
Remove xfail from shifting test
Browse files Browse the repository at this point in the history
  • Loading branch information
dvolodin7 committed Nov 5, 2024
1 parent e6ef36b commit 039e8ce
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_snmp_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,12 @@ def test_get_engine_id(snmpd: Snmpd, cfg: Dict[str, Any]) -> None:
assert r == snmpd.engine_id


@pytest.mark.xfail
@pytest.mark.parametrize("cfg", V2)
def test_shift(snmpd: Snmpd, cfg: Dict[str, Any]) -> None:
with SyncShiftProxy() as proxy:
addr, port = proxy.addr
with SnmpSession(addr=addr, port=port, timeout=2.0, **cfg) as session:
print("GET CONTACT")
with pytest.raises(TimeoutError):
session.get(SNMP_CONTACT_OID)
print("GET LOCATION")
y = session.get(SNMP_LOCATION_OID)
assert y == SNMP_LOCATION
assert y.decode() == SNMP_LOCATION

0 comments on commit 039e8ce

Please sign in to comment.