Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
llbartekll committed Jan 31, 2024
1 parent 569c559 commit 108b075
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions Tests/WalletConnectSignTests/SessionEngineTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,37 @@ final class SessionEngineTests: XCTestCase {
var sessionStorage: WCSessionStorageMock!
var verifyContextStore: CodableStore<VerifyContext>!
var engine: SessionEngine!
var rpcHistory: RPCHistory!
var historyService: HistoryService!
var sessionRequestsProvider: SessionRequestsProvider!

override func setUp() {
rpcHistory = RPCHistory(
keyValueStore: .init(
defaults: RuntimeKeyValueStorage(),
identifier: ""
)
)
historyService = HistoryService(
history: rpcHistory,
verifyContextStore: verifyContextStore
)
sessionRequestsProvider = SessionRequestsProvider(historyService: historyService)
networkingInteractor = NetworkingInteractorMock()
sessionStorage = WCSessionStorageMock()
verifyContextStore = CodableStore<VerifyContext>(defaults: RuntimeKeyValueStorage(), identifier: "")
engine = SessionEngine(
networkingInteractor: networkingInteractor,
historyService: historyService,
historyService: HistoryService(
history: RPCHistory(
keyValueStore: .init(
defaults: RuntimeKeyValueStorage(),
identifier: ""
)
),
verifyContextStore: verifyContextStore
),
verifyContextStore: verifyContextStore,
verifyClient: VerifyClientMock(),
kms: KeyManagementServiceMock(),
sessionStore: sessionStorage,
logger: ConsoleLoggerMock(),
sessionRequestsProvider: sessionRequestsProvider
sessionRequestsProvider: SessionRequestsProvider(
historyService: HistoryService(
history: RPCHistory(
keyValueStore: .init(
defaults: RuntimeKeyValueStorage(),
identifier: ""
)
),
verifyContextStore: verifyContextStore
))
)
}

Expand Down Expand Up @@ -64,4 +67,3 @@ final class SessionEngineTests: XCTestCase {
wait(for: [expectation], timeout: 0.5)
}
}

0 comments on commit 108b075

Please sign in to comment.