Sha256: aca1363ba20a0f2a14226b705cca295565e790f3d81bbaf03f6d60d7fc3d1232
Contents?: true
Size: 683 Bytes
Versions: 1
Compression:
Stored size: 683 Bytes
Contents
describe "Simple networking api" do it "should provide a framework for running remote apps" do FACTOR=200000 b1=TestBed.new b2=TestBed.new ["NodeBroadcast","NetworkDiscoveryUdp","NetworkDiscovery","UdpNetwork"].each{|n| b1.run(n) b2.run(n) } sleep 3 n1=b1.getApp(:fullNetworkNode).api n2=b2.getApp(:fullNetworkNode).api service1=n1.hook("test1"){|arg| arg.should == "test1Arg"*FACTOR "testRet"*FACTOR } puts "TESTTTTTTTTTTTTTTTTTTT" measureTime { n2.send(n1.me,"test1","test1Arg"*FACTOR).wait.should == "testRet"*FACTOR } b1.stop b2.stop end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appswarm-0.0.1 | apps/udp_network/spec/simple_api_spec.rb |