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 a5e7684
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion Examples/UserManagement/ProfileView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ struct ProfileView: View {
@State var isLoading = false

@State var imageSelection: PhotosPickerItem?

@State var avatarImage: AvatarImage?

var body: some View {
Expand Down
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 a5e7684

Please sign in to comment.