Skip to content

Commit da78d1d

Browse files
author
Guilherme Souza
committed
rollback ci xcode versions
1 parent f315da6 commit da78d1d

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
matrix:
2222
command: [test, ""]
2323
platform: [IOS, MAC_CATALYST, MACOS, TVOS, VISIONOS, WATCHOS]
24-
xcode: ["15.2"]
24+
xcode: ["15.4", "16.0"]
2525
exclude:
2626
- { platform: VISIONOS }
2727
include:
@@ -54,7 +54,7 @@ jobs:
5454
name: linux
5555
strategy:
5656
matrix:
57-
swift-version: ["5.9", "5.10"]
57+
swift-version: ["5.10"]
5858
runs-on: ubuntu-latest
5959
steps:
6060
- uses: actions/checkout@v4

Sources/Storage/StorageFileApi.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ enum FileUpload {
5151
}
5252

5353
#if DEBUG
54-
var testingBoundary: String?
54+
import ConcurrencyExtras
55+
let testingBoundary = LockIsolated<String?>(nil)
5556
#endif
5657

5758
/// Supabase Storage File API
@@ -88,7 +89,7 @@ public class StorageFileApi: StorageApi, @unchecked Sendable {
8889
headers[.duplex] = options.duplex
8990

9091
#if DEBUG
91-
let formData = MultipartFormData(boundary: testingBoundary)
92+
let formData = MultipartFormData(boundary: testingBoundary.value)
9293
#else
9394
let formData = MultipartFormData()
9495
#endif

Tests/StorageTests/SupabaseStorageTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ final class SupabaseStorageTests: XCTestCase {
9494

9595
#if !os(Linux)
9696
func testUploadData() async throws {
97-
testingBoundary = "alamofire.boundary.c21f947c1c7b0c57"
97+
testingBoundary.setValue("alamofire.boundary.c21f947c1c7b0c57")
9898

9999
sessionMock.fetch = { request in
100100
assertInlineSnapshot(of: request, as: .curl) {
@@ -155,7 +155,7 @@ final class SupabaseStorageTests: XCTestCase {
155155
}
156156

157157
func testUploadFileURL() async throws {
158-
testingBoundary = "alamofire.boundary.c21f947c1c7b0c57"
158+
testingBoundary.setValue("alamofire.boundary.c21f947c1c7b0c57")
159159

160160
sessionMock.fetch = { request in
161161
assertInlineSnapshot(of: request, as: .curl) {

0 commit comments

Comments
 (0)