MCPcopy Create free account
hub / github.com/apache/qpid-proton-j / testGetSet

Method testGetSet

tests/python/proton_tests/engine.py:1202–1217  ·  view source on GitHub ↗

Verify the configuration and negotiation of the idle timeout.

(self)

Source from the content-addressed store, hash-verified

1200 return "/".join(parts)[:size]
1201
1202 def testGetSet(self):
1203 """
1204 Verify the configuration and negotiation of the idle timeout.
1205 """
1206
1207 self.snd, self.rcv = self.link("test-link", idle_timeout=[1.0,2.0])
1208 self.c1 = self.snd.session.connection
1209 self.c2 = self.rcv.session.connection
1210 self.snd.open()
1211 self.rcv.open()
1212 self.pump()
1213 # proton advertises 1/2 the configured timeout to the peer:
1214 assert self.rcv.session.connection.transport.idle_timeout == 2.0
1215 assert self.rcv.session.connection.transport.remote_idle_timeout == 0.5
1216 assert self.snd.session.connection.transport.idle_timeout == 1.0
1217 assert self.snd.session.connection.transport.remote_idle_timeout == 1.0
1218
1219 def testTimeout(self):
1220 """

Callers

nothing calls this directly

Calls 3

openMethod · 0.65
linkMethod · 0.45
pumpMethod · 0.45

Tested by

no test coverage detected