Skip to content

Instantly share code, notes, and snippets.

@pquerna
Created June 21, 2012 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pquerna/a7bd326a393f6cb63ff0 to your computer and use it in GitHub Desktop.
Save pquerna/a7bd326a393f6cb63ff0 to your computer and use it in GitHub Desktop.
diff --git a/tests/test-tls-client-reject.lua b/tests/test-tls-client-reject.lua
index 065504b..0c1845c 100644
--- a/tests/test-tls-client-reject.lua
+++ b/tests/test-tls-client-reject.lua
@@ -13,6 +13,7 @@ local client_options = {
p(options)
local connectCount = 0
+local gotDataCount = 0
local server
server = tls.createServer(options, function(socket)
@@ -20,6 +21,8 @@ server = tls.createServer(options, function(socket)
p(connectCount)
socket:on('data', function(data)
print(data)
+ gotDataCount = gotDataCount + 1
+ p('got data callback')
assert(data == 'ok')
end)
end)
@@ -94,4 +97,5 @@ end)
process:on('exit', function()
assert(connectCount == 3)
+ assert(gotDataCount == 3)
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment