Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
Make ETSI TD_COAP_BLOCK_0{1,2} work.
Browse files Browse the repository at this point in the history
  • Loading branch information
nning committed Feb 13, 2015
1 parent 1b3d969 commit 8108141
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion benchmarks/interop.sh
@@ -1,2 +1,2 @@
#!/bin/sh
java -jar coapbench/californium/run/cf-plugtest-checker-1.0.0-SNAPSHOT.jar -s "coap://[::1]:5683" CC01 CC02 CC03 CC04 CC05 CC06 CC07 CC08 CC10 CC11 CC12 CC13
java -jar coapbench/californium/run/cf-plugtest-checker-1.0.0-SNAPSHOT.jar -s "coap://[::1]:5683" CC01 CC02 CC03 CC04 CC05 CC06 CC07 CC08 CC10 CC11 CC12 CC13 CB01 CB02 CO01_12
10 changes: 8 additions & 2 deletions benchmarks/rackup/interop.ru
@@ -1,4 +1,4 @@
#\ -o ::1 -p 5683 -O Block=false -O Multicast=false -O Observe=false -O Log=debug -E none
#\ -o ::1 -p 5683 -O Block=true -O Multicast=false -O Observe=false -O Log=debug -E none

module David; module ETSI; end; end

Expand All @@ -7,5 +7,11 @@ Bundler.setup

require 'david'
require 'david/etsi/mandatory/rack'
require 'david/etsi/optional/rack'

run David::ETSI::Mandatory::Rack.new
apps = [
David::ETSI::Optional::Rack.new,
David::ETSI::Mandatory::Rack.new,
]

run Rack::Cascade.new(apps)
2 changes: 1 addition & 1 deletion lib/david/etsi/mandatory/rack.rb
Expand Up @@ -13,7 +13,7 @@ def call(env)
when 'DELETE /test'
[2.02, {}, []]
else
[4.04, {}, []]
[404, {}, []]
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/david/etsi/optional/rack.rb
Expand Up @@ -13,7 +13,7 @@ def call(env)
[Time.now.to_s]
]
else
[4.04, {}, []]
[404, {}, []]
end
end

Expand Down

0 comments on commit 8108141

Please sign in to comment.