Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vsanthanam committed Jun 11, 2022
1 parent 4da5029 commit db8a0e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ NetworkReachability's documentation is built with [DocC](https://developer.apple

[![Documentation](Images/Documentation.svg)](https://reachability.tools/docs/documentation/networkreachability)

Additional installation instructions are available on the [Swift Package Index](https://swiftpackageindex.com/vsanthanam/NetworkReachability)

[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fvsanthanam%2FNetworkReachability%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/vsanthanam/NetworkReachability)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fvsanthanam%2FNetworkReachability%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/vsanthanam/NetworkReachability)

## License

**NetworkReachability** is available under the MIT license. See the LICENSE file for more information.
13 changes: 0 additions & 13 deletions Tests/NetworkReachabilityTests/ReachabilityMonitorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,12 @@
// SOFTWARE.

import Foundation
#if canImport(Combine)
import Combine
#endif
@testable import NetworkReachability
import XCTest

@available(macOS 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *)
final class ReachabilityMonitorTests: XCTestCase {

#if canImport(Combine)
var cancellable: AnyCancellable?
#endif

func test_get_sync() {
do {
let reachability = try ReachabilityMonitor.reachability
Expand Down Expand Up @@ -140,10 +133,4 @@ final class ReachabilityMonitorTests: XCTestCase {
}
}
}

deinit {
if #available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) {
cancellable?.cancel()
}
}
}

0 comments on commit db8a0e9

Please sign in to comment.