File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,10 @@ import XCTest
30
30
class StateBindingTests : XCTestCase {
31
31
func test_stateBinding_whenProvidedExternalBinding_doesUseExternalBinding( ) async {
32
32
let getterExpectation = expectation ( description: " Expected binding getter. " )
33
- getterExpectation. expectedFulfillmentCount = 2
33
+ getterExpectation. expectedFulfillmentCount = 3
34
34
35
35
let setterExpectation = expectation ( description: " Expected binding setter. " )
36
+ setterExpectation. expectedFulfillmentCount = 2
36
37
37
38
let count = LockIsolated ( 0 )
38
39
let binding = Binding (
@@ -49,6 +50,10 @@ class StateBindingTests: XCTestCase {
49
50
_counter. externalBinding = binding
50
51
binding. wrappedValue = 10
51
52
XCTAssertEqual ( counter, 10 )
52
- await fulfillment ( of: [ setterExpectation, getterExpectation] , enforceOrder: true )
53
+
54
+ counter = 15
55
+ XCTAssertEqual ( counter, 15 )
56
+
57
+ await fulfillment ( of: [ setterExpectation, getterExpectation] , enforceOrder: false )
53
58
}
54
59
}
You can’t perform that action at this time.
0 commit comments