Unit Testing Object Box for Flutter App in macOS is failing

98 Views Asked by At

While reading from object box for doing unit testing for flutter app in mac, it is giving error like

RangeError (byteOffset): Invalid value: Valid value range is empty: 0

It is coming for any call of query.find(). Object box version is 1.6.2

How to get around this ?

Edit code for reproducibility

final query = _box.query(any query).build(); 
final data = query.find(); 
query.close(); 
return data;
0

There are 0 best solutions below