File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public function testConsistencyMultiple(): void
72
72
{
73
73
$ aliases = $ this ->connectionAliases ();
74
74
$ tsxs = [];
75
- for ($ i = 0 ; $ i < 1000 ; ++$ i ) {
75
+ for ($ i = 0 ; $ i < 200 ; ++$ i ) {
76
76
$ alias = $ aliases [$ i % count ($ aliases )][0 ];
77
77
if ($ i % 2 === 0 ) {
78
78
$ tsx = $ this ->client ->beginTransaction (null , $ alias );
@@ -83,9 +83,15 @@ public function testConsistencyMultiple(): void
83
83
}
84
84
85
85
self ::assertEquals (1 , $ x );
86
- if ($ i % 50 === 9 ) {
87
- for ($ j = 0 ; $ j < 24 ; ++$ j ) {
88
- array_pop ($ tsxs );
86
+ if ($ i % 20 === 19 ) {
87
+ $ x = $ tsx ->run ('RETURN 1 AS x ' )->first ()->get ('x ' );
88
+ self ::assertEquals (1 , $ x );
89
+ for ($ j = 0 ; $ j < 9 ; ++$ j ) {
90
+ $ tsx = array_pop ($ tsxs );
91
+
92
+ if ($ j % 2 === 0 ) {
93
+ $ tsx ->commit ();
94
+ }
89
95
}
90
96
}
91
97
}
You can’t perform that action at this time.
0 commit comments