Sha256: deab6c5bb0e2c061d9d8c394dfc9f1fc403dbd223fddcad4db4ffa921b5def60
Contents?: true
Size: 536 Bytes
Versions: 1
Compression:
Stored size: 536 Bytes
Contents
require_relative "../lib/nats/rpc" client = NATS::RPC::Client.new begin data, payload = client.request 'errors', {}, timeout: 1, queue: 'e2e' rescue NATS::RPC::RemoteError => rex puts rex.remote_exception puts rex puts rex.backtrace.join("\n") raise "remote_exception" unless rex.remote_exception == "NameError" raise "rex" unless rex.to_s == "NameError (undefined local variable or method `asdf' for main:Object)" raise "backtrace" unless rex.backtrace[0] == "e2e/servant_error.rb:5:in `block in <top (required)>'" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nats-rpc-0.2.1 | e2e/client_error.rb |