Skip to content

Commit

Permalink
Fix web view model tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kyzmitch committed Feb 4, 2024
1 parent 7b87eaf commit 22260d7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import CottonRestKit
import CottonBase
import WebKit
import Combine
import SwiftyMocky

@MainActor
final class WebViewVmDNSoverHTTPSConcurrencyTests: WebViewVMFixture {
Expand All @@ -31,6 +32,7 @@ final class WebViewVmDNSoverHTTPSConcurrencyTests: WebViewVMFixture {

// swiftlint:disable:next force_unwrapping force_try
let resolvedUrlV1 = try! urlV1!.updatedHost(with: exampleIpAddress!)
Given(resolveDnsUseCaseMock, .aaResolveDomainName(.value(urlV1!), willReturn: resolvedUrlV1))

Check failure on line 35 in catowseriOS/CottonDataTests/WebViewVM/WebViewVmDNSoverHTTPSConcurrencyTests.swift

View workflow job for this annotation

GitHub Actions / lint-ios

Force Unwrapping Violation: Force unwrapping should be avoided (force_unwrapping)
await vm.load()

// swiftlint:disable:next force_unwrapping
Expand Down

0 comments on commit 22260d7

Please sign in to comment.