@@ -37,7 +37,7 @@ class TranscriptionCancellationTests: ResourceDependentTestCase, ModelFileTestCa
37
37
}
38
38
)
39
39
40
- await fulfillment ( of : [ cancelExpectation, failureExpectation] , timeout: timeout)
40
+ wait ( for : [ cancelExpectation, failureExpectation] , timeout: timeout)
41
41
}
42
42
43
43
func testTranscribeCancellationRestart( ) async {
@@ -74,7 +74,7 @@ class TranscriptionCancellationTests: ResourceDependentTestCase, ModelFileTestCa
74
74
}
75
75
)
76
76
77
- await fulfillment ( of : [ cancelExpectation, failureExpectation, restartExpectation] , timeout: timeout)
77
+ wait ( for : [ cancelExpectation, failureExpectation, restartExpectation] , timeout: timeout)
78
78
}
79
79
80
80
func testTranscribeDoubleCancellation( ) async {
@@ -106,7 +106,7 @@ class TranscriptionCancellationTests: ResourceDependentTestCase, ModelFileTestCa
106
106
}
107
107
)
108
108
109
- await fulfillment ( of : [ cancelExpectation, failureExpectation] , timeout: timeout)
109
+ wait ( for : [ cancelExpectation, failureExpectation] , timeout: timeout)
110
110
}
111
111
112
112
func testTranscribePrematureCancellation( ) async {
@@ -149,7 +149,7 @@ class TranscriptionCancellationTests: ResourceDependentTestCase, ModelFileTestCa
149
149
}
150
150
151
151
// Should be fine because function is async, but just to be safe
152
- await fulfillment ( of : [ failureExpectation, cancelledExpectation] , timeout: timeout)
152
+ wait ( for : [ failureExpectation, cancelledExpectation] , timeout: timeout)
153
153
}
154
154
155
155
@@ -190,6 +190,6 @@ class TranscriptionCancellationTests: ResourceDependentTestCase, ModelFileTestCa
190
190
}
191
191
192
192
// Should be fine because function is async, but just to be safe
193
- await fulfillment ( of : [ failureExpectation, cancelledExpectation, cancellationFailureExpectation] , timeout: timeout)
193
+ wait ( for : [ failureExpectation, cancelledExpectation, cancellationFailureExpectation] , timeout: timeout)
194
194
}
195
195
}
0 commit comments