diff --git a/TalerWallet1/Model/Model+Settings.swift b/TalerWallet1/Model/Model+Settings.swift index a8af5556..c5a55701 100644 --- a/TalerWallet1/Model/Model+Settings.swift +++ b/TalerWallet1/Model/Model+Settings.swift @@ -92,28 +92,3 @@ extension WalletModel { _ = try await sendRequest(request, viewHandles: viewHandles) } } // runIntegrationTest - // MARK: - -/// A request to add a test balance to the wallet. -fileprivate struct InfiniteTransactionLoop: WalletBackendFormattedRequest { - struct Response: Decodable {} // no result - getting no error back means success - var operation: String { "testingInfiniteTransactionLoop" } - func args() -> Args { Args(delayMs: delayMs, - shouldFetch: shouldFetch) - } - - let delayMs: Int32 - let shouldFetch: Bool - - - struct Args: Encodable { - let delayMs: Int32 - let shouldFetch: Bool - } -} -extension WalletModel { - nonisolated func testingInfiniteTransaction(delayMs: Int32, shouldFetch: Bool, viewHandles: Bool = false) - async throws { - let request = InfiniteTransactionLoop(delayMs: delayMs, shouldFetch: shouldFetch) - _ = try await sendRequest(request, viewHandles: viewHandles) - } -} // testingInfiniteTransaction diff --git a/TalerWallet1/Views/Settings/DebugSettingsView.swift b/TalerWallet1/Views/Settings/DebugSettingsView.swift index f3621f2a..f769bd52 100644 --- a/TalerWallet1/Views/Settings/DebugSettingsView.swift +++ b/TalerWallet1/Views/Settings/DebugSettingsView.swift @@ -255,20 +255,6 @@ struct DebugSettingsView: View { .buttonStyle(.bordered) .disabled(checkDisabled) }.id("test2runTest") - SettingsItem(name: String("Run Infinite Transaction Loop"), - id1: "runInfinite", - description: String("Check DB in background")) { - let title = "Loop" - Button(title) { - checkDisabled = true // don't run twice - Task { // runs on MainActor - symLog.log("Running Infinite Transaction Loop") - try? await model.testingInfiniteTransaction(delayMs: 10_000, shouldFetch: true) - } - } - .buttonStyle(.bordered) - .disabled(checkDisabled) - }.id("runInfiniteLoop") #if false SettingsItem(name: String("Save Logfile"), id1: "save", description: String("Help debugging wallet-core")) {