Skip to content

Commit 057b908

Browse files
committed
fix ruby and kt
1 parent b4d2bbc commit 057b908

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/ruby/tests/client/tests.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{#dynamicTemplate}}{{/dynamicTemplate}}
1919
assert(false, 'An error should have been raised')
2020
rescue => e
21-
assert_equal({{#lambda.codeSnakeCase}}'{{{expectedError}}}'{{/lambda.codeSnakeCase}}.sub('%localhost%', ENV.fetch('CI', nil) == 'true' ? 'localhost' : 'host.docker.internal'), e.message)
21+
assert_equal({{#lambda.codeSnakeCase}}%q({{{expectedError}}}){{/lambda.codeSnakeCase}}.sub('%localhost%', ENV.fetch('CI', nil) == 'true' ? 'localhost' : 'host.docker.internal'), e.message)
2222
end
2323
{{/isError}}
2424
{{^isError}}

tests/CTS/client/ingestion/api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"go": "API error [429] Too Many Requests",
2929
"java": "Status Code: 429 - <html><body>429 Too Many Requests</body></html>",
3030
"javascript": "<html><body>429 Too Many Requests</body></html>",
31-
"kotlin": "Client request(GET http://%localhost%:6676/1/html-error) invalid: 429 Too Many Requests. Text: \"<html><body>429 Too Many Requests</body></html>\"",
31+
"kotlin": "Client request(GET http://%localhost%:6676/1/html-error) invalid: 429 Too Many Requests. Text: \\\"<html><body>429 Too Many Requests</body></html>\\\"",
3232
"php": "json_decode error: Syntax error",
3333
"python": "Too Many Requests",
3434
"ruby": "unexpected token at '<html><body>429 Too Many Requests</body></html>'",

0 commit comments

Comments
 (0)