From 0a1b0025e09aa480172641c1cad00ab5d846a1e2 Mon Sep 17 00:00:00 2001 From: Vatsal Manot Date: Sun, 21 Apr 2024 23:23:32 -0700 Subject: [PATCH] Update package --- Sources/Lite/Intramodular/Models/LTAccountStore.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/Lite/Intramodular/Models/LTAccountStore.swift b/Sources/Lite/Intramodular/Models/LTAccountStore.swift index 6d1d72a..83608c7 100644 --- a/Sources/Lite/Intramodular/Models/LTAccountStore.swift +++ b/Sources/Lite/Intramodular/Models/LTAccountStore.swift @@ -38,12 +38,16 @@ public final class LTAccountStore: ObservableObject { }() public init() { - _loadTestAccountsIfNeeded() + if ProcessInfo.processInfo._isRunningWithinXCTest { + _loadTestAccountsIfNeeded() + } } } extension LTAccountStore { fileprivate func _loadTestAccountsIfNeeded() { + assert(ProcessInfo.processInfo._isRunningWithinXCTest) + @FileStorage( url: URL.homeDirectory.appending(path: ".preternatural.toml"), coder: TOMLCoder()