File tree Expand file tree Collapse file tree 7 files changed +5
-25
lines changed Expand file tree Collapse file tree 7 files changed +5
-25
lines changed Original file line number Diff line number Diff line change 88# * update lib/src/bindings/objectbox.h
99# * execute pub run ffigen
1010# * have a look at the changed files to see if some call sites need to be updated
11- cLibVersion=0.12 .0
11+ cLibVersion=0.13 .0
1212os=$( uname)
1313
1414# if there's no tty this is probably part of a docker build - therefore we install the c-api explicitly
Original file line number Diff line number Diff line change @@ -714,7 +714,8 @@ class Query<T> {
714714 String describe () => dartStringFromC (C .query_describe (_cQuery));
715715
716716 /// For internal testing purposes.
717- String describeParameters () => dartStringFromC (C .query_describe_params (_cQuery));
717+ String describeParameters () =>
718+ dartStringFromC (C .query_describe_params (_cQuery));
718719
719720 /// Creates a property query for the given property [qp] .
720721 ///
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ void main() {
9999 isolate.kill ();
100100 receivePort.close ();
101101 env.close ();
102- }, skip : asyncCallbacksAvailable () ? null : 'See issue #197' );
102+ });
103103}
104104
105105// Echoes back any received message.
Original file line number Diff line number Diff line change @@ -27,8 +27,6 @@ void main() async {
2727
2828 tearDown (() => env.close ());
2929
30- if (! asyncCallbacksAvailable ()) return ;
31-
3230 test ('Observe single entity' , () async {
3331 late Completer <void > completer;
3432 var expectedEvents = 0 ;
Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ void main() {
1818
1919 tearDown (() => env.close ());
2020
21- if (! asyncCallbacksAvailable ()) return ;
22-
2321 test ('Subscribe to stream of entities' , () async {
2422 final result = < String > [];
2523 final text = TestEntity_ .tString;
Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ void main() {
335335 client2.close ();
336336 });
337337 },
338- skip: SyncServer .isAvailable () && asyncCallbacksAvailable ()
338+ skip: SyncServer .isAvailable ()
339339 ? null
340340 : 'sync-server executable is not available in PATH - tests requiring it are skipped' );
341341 } else {
Original file line number Diff line number Diff line change @@ -27,23 +27,6 @@ class TestEnv {
2727 }
2828}
2929
30- // Whether we can run tests depending on async callbacks. See issue #197
31- bool asyncCallbacksAvailable () {
32- if (() {
33- final sdkVersion = Platform .version.split (RegExp ('[. ]' ));
34- if (sdkVersion.length < 3 ) return false ;
35- if (sdkVersion[0 ] != '2' ) return false ;
36- if (! ['9' , '10' ].contains (sdkVersion[1 ])) return false ;
37- return true ;
38- }()) {
39- return true ;
40- } else {
41- print (
42- 'Skipping some tests - SDK not compatible with native async listeners: ${Platform .version }' );
43- return false ;
44- }
45- }
46-
4730const defaultTimeout = Duration (milliseconds: 1000 );
4831
4932/// "Busy-waits" until the predicate returns true.
You can’t perform that action at this time.
0 commit comments