Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev committed Nov 17, 2023
1 parent 987b6ad commit 3976d4a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Tests/StorageTests/StorageClientIntegrationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,13 @@ final class StorageClientIntegrationTests: XCTestCase {

try await storage.from(bucketId).update(
path: "README.md",
file: File(name: "README.md", data: dataToUpdate ?? Data(), fileName: nil, contentType: nil)
file: dataToUpdate ?? Data()
)
}

private func uploadTestData() async throws {
let file = File(
name: "README.md", data: uploadData ?? Data(), fileName: "README.md", contentType: "text/html"
)
_ = try await storage.from(bucketId).upload(
path: "README.md", file: file, fileOptions: FileOptions(cacheControl: "3600")
path: "README.md", file: uploadData ?? Data(), options: FileOptions(cacheControl: "3600")
)
}
}

0 comments on commit 3976d4a

Please sign in to comment.