Skip to content

Commit

Permalink
Fixed tests target (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg-Pecheneg authored Jul 4, 2024
1 parent b67b6b2 commit 9bf5bc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ private final class MockNetworkService: DomainProfileNetworkServiceProtocol, Fai
[]
}

func fetchReverseResolution(for address: HexAddress) async throws -> DomainName? {
nil
}
}

private final class MockStorage: DomainProfileDisplayInfoStorageServiceProtocol {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ final class TestableDomainProfilesService: DomainProfilesServiceProtocol, Failab
throw TestableGenericError.generic
}

func fetchResolvedDomainProfileDisplayInfo(for walletAddress: HexAddress) async throws -> DomainProfileDisplayInfo {
try failIfNeeded()
throw TestableGenericError.generic
}

func getCachedAndRefreshDomainProfileStream(for domainName: DomainName) -> AsyncThrowingStream<DomainProfileDisplayInfo, any Error> {
AsyncThrowingStream { continuation in
continuation.finish(throwing: TestableGenericError.generic)
Expand Down

0 comments on commit 9bf5bc7

Please sign in to comment.