@@ -37,7 +37,7 @@ class TranscriptionCancellationTests: ResourceDependentTestCase, ModelFileTestCa
3737 }
3838 )
3939
40- await fulfillment ( of : [ cancelExpectation, failureExpectation] , timeout: timeout)
40+ wait ( for : [ cancelExpectation, failureExpectation] , timeout: timeout)
4141 }
4242
4343 func testTranscribeCancellationRestart( ) async {
@@ -74,7 +74,7 @@ class TranscriptionCancellationTests: ResourceDependentTestCase, ModelFileTestCa
7474 }
7575 )
7676
77- await fulfillment ( of : [ cancelExpectation, failureExpectation, restartExpectation] , timeout: timeout)
77+ wait ( for : [ cancelExpectation, failureExpectation, restartExpectation] , timeout: timeout)
7878 }
7979
8080 func testTranscribeDoubleCancellation( ) async {
@@ -106,7 +106,7 @@ class TranscriptionCancellationTests: ResourceDependentTestCase, ModelFileTestCa
106106 }
107107 )
108108
109- await fulfillment ( of : [ cancelExpectation, failureExpectation] , timeout: timeout)
109+ wait ( for : [ cancelExpectation, failureExpectation] , timeout: timeout)
110110 }
111111
112112 func testTranscribePrematureCancellation( ) async {
@@ -149,7 +149,7 @@ class TranscriptionCancellationTests: ResourceDependentTestCase, ModelFileTestCa
149149 }
150150
151151 // 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)
153153 }
154154
155155
@@ -190,6 +190,6 @@ class TranscriptionCancellationTests: ResourceDependentTestCase, ModelFileTestCa
190190 }
191191
192192 // 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)
194194 }
195195}
0 commit comments