Skip to content

Commit 710d282

Browse files
committed
fix tests
1 parent dfbced2 commit 710d282

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tests/FunctionsTests/FunctionsClientTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ final class FunctionsClientTests: XCTestCase {
172172

173173
Mock(
174174
url: url.appendingPathComponent("hello-world"),
175+
ignoreQuery: true,
175176
statusCode: 200,
176177
data: [.post: Data()]
177178
)
@@ -182,7 +183,7 @@ final class FunctionsClientTests: XCTestCase {
182183
--header "X-Client-Info: functions-swift/0.0.0" \
183184
--header "apikey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0" \
184185
--header "x-region: ca-central-1" \
185-
"http://localhost:5432/functions/v1/hello-world"
186+
"http://localhost:5432/functions/v1/hello-world?forceFunctionRegion=ca-central-1"
186187
"""#
187188
}
188189
.register()
@@ -193,6 +194,7 @@ final class FunctionsClientTests: XCTestCase {
193194
func testInvokeWithRegion() async throws {
194195
Mock(
195196
url: url.appendingPathComponent("hello-world"),
197+
ignoreQuery: true,
196198
statusCode: 200,
197199
data: [.post: Data()]
198200
)
@@ -203,7 +205,7 @@ final class FunctionsClientTests: XCTestCase {
203205
--header "X-Client-Info: functions-swift/0.0.0" \
204206
--header "apikey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0" \
205207
--header "x-region: ca-central-1" \
206-
"http://localhost:5432/functions/v1/hello-world"
208+
"http://localhost:5432/functions/v1/hello-world?forceFunctionRegion=ca-central-1"
207209
"""#
208210
}
209211
.register()

0 commit comments

Comments
 (0)