diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-07-24 14:03:15 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-07-24 14:03:15 +0200 |
commit | 57e67cac5564a28abe1aa105d8122fe295a33927 (patch) | |
tree | 05209c5ca1204df0f9cbf3c381c95a185457ef82 | |
parent | d1e8b2dcd58e32ad509351349314966158e092ca (diff) |
test: Remember the right collection
When executing multiple tests we might not have the collection we
want anymore. Some tests don't stop all the timers so we have a
retransmit and this would cause an exception and log spam.
-rw-r--r-- | callagent/tests/SIPCallAgentTest.st | 4 | ||||
-rw-r--r-- | callagent/tests/SIPInviteTest.st | 4 | ||||
-rw-r--r-- | callagent/tests/SIPRegisterTransactionTest.st | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/callagent/tests/SIPCallAgentTest.st b/callagent/tests/SIPCallAgentTest.st index ff62780..610a914 100644 --- a/callagent/tests/SIPCallAgentTest.st +++ b/callagent/tests/SIPCallAgentTest.st @@ -126,9 +126,11 @@ TestCase subclass: SIPCallAgentTest [ ] setUp [ + | localSent | sent := OrderedCollection new. + localSent := sent. transport := SIPTransportMock new - onData: [:datagram | sent add: datagram]; + onData: [:datagram | localSent add: datagram]; yourself. agent := SIPUserAgent createOn: transport. agent diff --git a/callagent/tests/SIPInviteTest.st b/callagent/tests/SIPInviteTest.st index 18118af..b873f4e 100644 --- a/callagent/tests/SIPInviteTest.st +++ b/callagent/tests/SIPInviteTest.st @@ -70,9 +70,11 @@ TestCase subclass: SIPInviteTest [ ] setUp [ + | localSent | sent := OrderedCollection new. + localSent := sent. transport := SIPTransportMock new - onData: [:datagram | sent add: datagram]; + onData: [:datagram | localSent add: datagram]; yourself. agent := SIPUserAgent createOn: transport. agent diff --git a/callagent/tests/SIPRegisterTransactionTest.st b/callagent/tests/SIPRegisterTransactionTest.st index 1a6cee9..96e7952 100644 --- a/callagent/tests/SIPRegisterTransactionTest.st +++ b/callagent/tests/SIPRegisterTransactionTest.st @@ -53,9 +53,11 @@ TestCase subclass: SIPRegisterTransactionTest [ ] setUp [ + | localSent | sent := OrderedCollection new. + localSent := sent. transport := SIPTransportMock new - onData: [:datagram | sent add: datagram]; + onData: [:datagram | localSent add: datagram]; yourself. agent := SIPUserAgent createOn: transport. agent |