1
0
Fork 0

sccp: Fix the SCCPHelper>>#createRLSD.. invocation

This was spotted by the code critics of Pharo. Use the right class
selector to create a Connection Released message.
This commit is contained in:
Holger Hans Peter Freyther 2013-04-01 15:00:25 +02:00
parent a0257331f3
commit 3423039406
2 changed files with 8 additions and 1 deletions

View File

@ -112,6 +112,13 @@ TestCase subclass: SCCPTests [
self assert: rlsd toMessage asByteArray = target.
]
testCreateRLSD [
| target rlsd |
target := #(4 154 2 0 66 5 5 0 1 0 ) asByteArray.
rlsd := SCCPHelper createRLSD: 16r50542 dest: 16r0029A cause: 0.
self assert: rlsd asByteArray = target.
]
testRlc [
| target rlc |

View File

@ -53,7 +53,7 @@ Object subclass: SCCPHelper [
SCCPHelper class >> createRLSD: src dest: dest cause: cause [
<category: 'creation'>
^ (SCCPConnectionReleased initWith: src dest: dest cause: cause)
^ (SCCPConnectionReleased initWithDst: dest src: src cause: cause)
toMessage.
]