-
-
Save pquerna/a7bd326a393f6cb63ff0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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