File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 781781 expect (db.select ('SELECT * FROM users' ), isEmpty);
782782 });
783783
784- test ("can't use crud vtab during sync" , () {
784+ test ("crud vtab is no-op during sync" , () {
785785 db.execute (
786786 'CREATE TABLE users (id TEXT NOT NULL PRIMARY KEY, name TEXT NOT NULL) STRICT;' );
787787
793793 {
794794 'name' : 'users' ,
795795 'put' : {
796- // Inserting into powersync_crud_ during a sync operation is
797- // forbidden, that vtab should only collect local writes.
798796 'sql' : "INSERT INTO powersync_crud_(data) VALUES (?);" ,
799797 'params' : [
800798 {'Column' : 'name' }
822820 objectType: 'users' ,
823821 );
824822
825- expect (pushCheckpointComplete, throwsA (isA <SqliteException >()));
823+ pushCheckpointComplete ();
824+ expect (db.select ('SELECT * FROM ps_crud' ), isEmpty);
826825 });
827826 });
828827}
You can’t perform that action at this time.
0 commit comments