Skip to content

Commit a2ea0b1

Browse files
committed
Fix tests: MainActor setUp/tearDown, test target signing
1 parent e58108a commit a2ea0b1

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

TaskMenu.xcodeproj/project.pbxproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@
229229
BuildIndependentTargetsInParallel = YES;
230230
LastUpgradeCheck = 1600;
231231
TargetAttributes = {
232+
2499498786EF41DCFC6BE7F6 = {
233+
DevelopmentTeam = ZW5U6862Q8;
234+
ProvisioningStyle = Manual;
235+
};
232236
54F3465CB5E85F801680719A = {
233237
DevelopmentTeam = ZW5U6862Q8;
234238
ProvisioningStyle = Manual;
@@ -404,7 +408,10 @@
404408
isa = XCBuildConfiguration;
405409
buildSettings = {
406410
BUNDLE_LOADER = "$(TEST_HOST)";
411+
CODE_SIGN_IDENTITY = 47081BEFF0F575643E99369B44CBAC87BBCC85E6;
412+
CODE_SIGN_STYLE = Manual;
407413
COMBINE_HIDPI_IMAGES = YES;
414+
DEVELOPMENT_TEAM = ZW5U6862Q8;
408415
GENERATE_INFOPLIST_FILE = YES;
409416
LD_RUNPATH_SEARCH_PATHS = (
410417
"$(inherited)",
@@ -500,7 +507,10 @@
500507
isa = XCBuildConfiguration;
501508
buildSettings = {
502509
BUNDLE_LOADER = "$(TEST_HOST)";
510+
CODE_SIGN_IDENTITY = 47081BEFF0F575643E99369B44CBAC87BBCC85E6;
511+
CODE_SIGN_STYLE = Manual;
503512
COMBINE_HIDPI_IMAGES = YES;
513+
DEVELOPMENT_TEAM = ZW5U6862Q8;
504514
GENERATE_INFOPLIST_FILE = YES;
505515
LD_RUNPATH_SEARCH_PATHS = (
506516
"$(inherited)",

TaskMenuTests/AppStateTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import XCTest
55
final class AppStateTests: XCTestCase {
66
private var keychain: KeychainService!
77

8-
override func setUp() {
9-
super.setUp()
8+
override func setUp() async throws {
9+
try await super.setUp()
1010
keychain = KeychainService(service: "com.taskmenu.statetest.\(UUID().uuidString)")
1111
}
1212

13-
override func tearDown() {
13+
override func tearDown() async throws {
1414
try? keychain.deleteAll()
15-
super.tearDown()
15+
try await super.tearDown()
1616
}
1717

1818
// MARK: - Initial State

project.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,8 @@ targets:
4747
base:
4848
PRODUCT_BUNDLE_IDENTIFIER: com.taskmenu.TaskMenuTests
4949
GENERATE_INFOPLIST_FILE: YES
50+
CODE_SIGN_IDENTITY: "47081BEFF0F575643E99369B44CBAC87BBCC85E6" # Apple Development: Jia Tan
51+
CODE_SIGN_STYLE: Manual
52+
DEVELOPMENT_TEAM: ZW5U6862Q8
5053
TEST_HOST: "$(BUILT_PRODUCTS_DIR)/TaskMenu.app/Contents/MacOS/TaskMenu"
5154
BUNDLE_LOADER: "$(TEST_HOST)"

0 commit comments

Comments
 (0)