Skip to content

Commit 37dbe50

Browse files
committed
[t] fix failed test in apicast-policy-tls.t
In 1.21.4 openresty sock:handshake return cdata type instead of userdata Reference: openresty/lua-nginx-module#1602
1 parent 807689e commit 37dbe50

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

t/apicast-policy-tls.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ content_by_lua_block {
7676
}
7777
--- response_body
7878
connected: 1
79-
ssl handshake: userdata
79+
ssl handshake: cdata
8080
HTTP/1.1 200 OK
8181
--- no_error_log
8282
[error]

t/listen-https.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ content_by_lua_block {
3838
}
3939
--- response_body
4040
connected: 1
41-
ssl handshake: userdata
41+
ssl handshake: cdata
4242
--- error_code: 200
4343
--- no_error_log
4444
[error]
@@ -110,7 +110,7 @@ content_by_lua_block {
110110
}
111111
--- response_body
112112
connected: 1
113-
ssl handshake: userdata
113+
ssl handshake: cdata
114114
--- error_code: 200
115115
--- no_error_log
116116
[error]
@@ -210,11 +210,11 @@ content_by_lua_block {
210210
}
211211
--- response_body
212212
connected: 1
213-
ssl handshake: userdata
213+
ssl handshake: cdata
214214
HTTP/1.1 201 Created
215215

216216
connected: 1
217-
ssl handshake: userdata
217+
ssl handshake: cdata
218218
HTTP/1.1 202 Accepted
219219
--- error_code: 200
220220
--- grep_error_log eval: qr/Falling back to routing by host/

0 commit comments

Comments
 (0)