about summary refs log tree commit homepage
path: root/test/test_tcp_info.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_tcp_info.rb')
-rw-r--r--test/test_tcp_info.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_tcp_info.rb b/test/test_tcp_info.rb
index 15df087..b107565 100644
--- a/test/test_tcp_info.rb
+++ b/test/test_tcp_info.rb
@@ -73,6 +73,9 @@ class TestTCP_Info < Test::Unit::TestCase
     a = s.accept
     i.get!(a)
     state = i.state
+    if Raindrops.const_defined?(:TCP)
+      assert_equal state, Raindrops::TCP[:ESTABLISHED]
+    end
     c = c.close
     sleep(0.01) # wait for kernel to update state
     i.get!(a)