X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fconnection.t;fp=t%2Fconnection.t;h=1a1ab723fae788473557ea14a2190f7b51194c6e;hb=451af734a02bd95ae80362af9e0a4f6b6e4ee34e;hp=7c28bc77c80e1b36208b6733ee01df2f09c5412e;hpb=2cecba5d55ca5249b4c3bbc4b388ddf85d739f72;p=scpubgit%2FTenDotTcl.git diff --git a/t/connection.t b/t/connection.t index 7c28bc7..1a1ab72 100644 --- a/t/connection.t +++ b/t/connection.t @@ -39,14 +39,16 @@ set ortestdata [[$conn send call {*}[jws class_call_handler 0 call ORTestClass n set ortestoid [lindex $ortestdata 0 1] -ten::handle ortest -id $ortestoid -connection $conn +set ortest [$conn remote_object $ortestoid] -cmp_ok != [pid] [ortest call pid] "pid is different on the other side" +cmp_ok != [pid] [$ortest call pid] "pid is different on the other side" -is [ortest call counter] 0 "Counter at 0" +is [$ortest call counter] 0 "Counter at 0" -is [ortest call increment] 1 "Incrememt to 1" +is [$ortest call increment] 1 "Incrememt to 1" -is [ortest call counter] 1 "Counter at 1" +is [$ortest call counter] 1 "Counter at 1" + +$ortest destroy done_testing