Skip to content

Commit

Permalink
Fix most of the warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Jul 2, 2024
1 parent 49de221 commit 565421f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/SpeziFoundationTests/SharedRepositoryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ final class SharedRepositoryTests: XCTestCase {
}
}

static var computedValue: Int = 3
static var optionalComputedValue: Int?
static nonisolated(unsafe) var computedValue: Int = 3

Check failure on line 257 in Tests/SpeziFoundationTests/SharedRepositoryTests.swift

View workflow job for this annotation

GitHub Actions / SwiftLint / SwiftLint

Type Contents Order Violation: An 'instance_property' should not be placed amongst the type content(s) 'type_property' (type_contents_order)
static nonisolated(unsafe) var optionalComputedValue: Int?

private var repos: [AnyTestInstance] = []

Expand Down
2 changes: 2 additions & 0 deletions Tests/SpeziFoundationTests/TimeoutTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import XCTest
final class TimeoutTests: XCTestCase {
@MainActor private var continuation: CheckedContinuation<Void, any Error>?

@MainActor
func operation(for duration: Duration) {
Task { @MainActor in
try? await Task.sleep(for: duration)
Expand All @@ -40,6 +41,7 @@ final class TimeoutTests: XCTestCase {
}
}

@MainActor
func testTimeout() async throws {
let negativeExpectation = XCTestExpectation()
negativeExpectation.isInverted = true
Expand Down

0 comments on commit 565421f

Please sign in to comment.