From e870465e5eb6a8ffa2ec1dcf178f38774268b9e1 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Mon, 22 Jul 2024 09:44:10 -0500 Subject: [PATCH] simplify test --- Tests/DependenciesTests/CacheTests.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Tests/DependenciesTests/CacheTests.swift b/Tests/DependenciesTests/CacheTests.swift index 326bc2da..306a562a 100644 --- a/Tests/DependenciesTests/CacheTests.swift +++ b/Tests/DependenciesTests/CacheTests.swift @@ -9,13 +9,10 @@ final class CachedValueTests: XCTestCase { } struct OuterDependencyTests: TestDependencyKey { - let perform: @Sendable () -> Void static var testValue: OuterDependencyTests { @Dependency(InnerDependency.self) var innerDependency innerDependency.perform() - return Self { - innerDependency.perform() - } + return Self() } } struct InnerDependency: TestDependencyKey {