@@ -23,14 +23,14 @@ struct ConnectionFullStackTests {
23
23
24
24
typealias Connection = USBSmartCardConnection
25
25
26
- @Test ( " Single Connection " )
26
+ @Test ( " Single Connection " , . timeLimit ( . minutes ( 1 ) ) )
27
27
func singleConnection( ) async throws {
28
28
let connection = try await Connection . connection ( )
29
29
#expect( true , " ✅ Got connection \( connection) " )
30
30
await connection. close ( error: nil )
31
31
}
32
32
33
- @Test ( " Serial Connections " )
33
+ @Test ( " Serial Connections " , . timeLimit ( . minutes ( 1 ) ) )
34
34
func serialConnections( ) async throws {
35
35
let firstConnection = try await Connection . connection ( )
36
36
#expect( true , " ✅ Got first connection \( firstConnection) " )
@@ -59,7 +59,7 @@ struct ConnectionFullStackTests {
59
59
await secondConnection. close ( error: nil )
60
60
}
61
61
62
- @Test ( " Connection Cancellation " )
62
+ @Test ( " Connection Cancellation " , . timeLimit ( . minutes ( 1 ) ) )
63
63
func connectionCancellation( ) async {
64
64
let task1 = Task {
65
65
try await Connection . connection ( )
@@ -90,7 +90,7 @@ struct ConnectionFullStackTests {
90
90
await connections. first? . close ( error: nil )
91
91
}
92
92
93
- @Test ( " Send Manually " )
93
+ @Test ( " Send Manually " , . timeLimit ( . minutes ( 1 ) ) )
94
94
func sendManually( ) async throws {
95
95
let connection = try await Connection . connection ( )
96
96
// Select Management application
@@ -142,15 +142,15 @@ struct ConnectionFullStackTests {
142
142
@Suite ( " NFC Full Stack Tests " , . serialized)
143
143
struct NFCFullStackTests {
144
144
145
- @Test ( " NFC Alert Message " )
145
+ @Test ( " NFC Alert Message " , . timeLimit ( . minutes ( 1 ) ) )
146
146
func nfcAlertMessage( ) async throws {
147
147
let connection = try await TestableConnections . create ( with: . nfc( alertMessage: " Test Alert Message " ) )
148
148
await connection. nfcConnection? . setAlertMessage ( " Updated Alert Message " )
149
149
try ? await Task . sleep ( for: . seconds( 1 ) )
150
150
await connection. nfcConnection? . close ( message: " Closing Alert Message " )
151
151
}
152
152
153
- @Test ( " NFC Closing Error Message " )
153
+ @Test ( " NFC Closing Error Message " , . timeLimit ( . minutes ( 1 ) ) )
154
154
func nfcClosingErrorMessage( ) async throws {
155
155
let connection = try await TestableConnections . create ( with: . nfc( alertMessage: " Test Alert Message " ) )
156
156
await connection. close ( error: nil )
@@ -162,7 +162,7 @@ struct NFCFullStackTests {
162
162
@Suite ( " SmartCard Connection Full Stack Tests " , . serialized)
163
163
struct SmartCardConnectionFullStackTests {
164
164
165
- @Test ( " SmartCard Connection With Slot " )
165
+ @Test ( " SmartCard Connection With Slot " , . timeLimit ( . minutes ( 1 ) ) )
166
166
func smartCardConnectionWithSlot( ) async throws {
167
167
let allSlots = try await USBSmartCardConnection . availableSlots
168
168
allSlots. enumerated ( ) . forEach { index, slot in
0 commit comments