Skip to content

Commit d514a55

Browse files
committed
swift conversion
1 parent 46a61fb commit d514a55

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/swift/tests/client/tests.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
XCTAssertNoThrow(try regexMatch(echoResponse.algoliaAgent, against: pattern), "Expected " + echoResponse.algoliaAgent + " to match the following regex: " + pattern);
3434
{{/testUserAgent}}
3535
{{#testTimeouts}}
36-
XCTAssertEqual(TimeInterval({{{matchResponseTimeout}}} / 1000), echoResponse.timeout);
36+
XCTAssertEqual(TimeInterval({{{matchResponseTimeout}}}) / 1000, echoResponse.timeout);
3737
{{/testTimeouts}}
3838
{{#testHost}}
3939
XCTAssertEqual("{{{match.value}}}", echoResponse.host);

templates/swift/tests/method.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ try {{#isAsyncMethod}}await {{/isAsyncMethod}}client.{{method}}{{^isHelper}}With
66
queryParameters: [{{#parametersWithDataType}}"{{key}}": {{> tests/paramValue }}{{^-last}}, {{/-last}}{{/parametersWithDataType}}]
77
{{/queryParameters}}
88
{{#timeouts.read}}
9-
readTimeout: {{.}} / 1000
9+
readTimeout: TimeInterval({{.}}) / 1000
1010
{{/timeouts.read}}
1111
{{#timeouts.write}}
12-
writeTimeout: {{.}} / 1000
12+
writeTimeout: TimeInterval({{.}}) / 1000
1313
{{/timeouts.write}}
1414
){{/requestOptions}}{{/hasRequestOptions}})

0 commit comments

Comments
 (0)