@@ -1322,20 +1322,26 @@ fn replicated_return() {
13221322
13231323 let conn = db. connect ( ) ?;
13241324
1325- conn. execute ( "CREATE TABLE user (id INTEGER NOT NULL PRIMARY KEY )" , ( ) )
1325+ conn. execute ( "CREATE TABLE user (id INTEGER)" , ( ) )
13261326 . await
13271327 . unwrap ( ) ;
13281328
13291329 let rep = db. sync ( ) . await . unwrap ( ) ;
13301330 assert_eq ! ( rep. frame_no( ) , Some ( 1 ) ) ;
13311331 assert_eq ! ( rep. start_frame_no( ) , None ) ;
13321332
1333- conn. execute_batch ( "INSERT into user(id) values (1); INSERT into user(id) values (2); INSERT into user(id) values (3)" )
1334- . await
1335- . unwrap ( ) ;
1333+ conn. execute_batch (
1334+ "
1335+ INSERT into user(id) values (randomblob(4096));
1336+ INSERT into user(id) values (randomblob(4096));
1337+ INSERT into user(id) values (randomblob(4096));
1338+ " ,
1339+ )
1340+ . await
1341+ . unwrap ( ) ;
13361342
13371343 let rep = db. sync ( ) . await . unwrap ( ) ;
1338- assert_eq ! ( rep. frame_no( ) , Some ( 4 ) ) ;
1344+ assert_eq ! ( rep. frame_no( ) , Some ( 10 ) ) ;
13391345 assert_eq ! ( rep. start_frame_no( ) , Some ( 1 ) ) ;
13401346
13411347 notify. notify_waiters ( ) ;
@@ -1345,7 +1351,11 @@ fn replicated_return() {
13451351
13461352 let rep = db. sync ( ) . await . unwrap ( ) ;
13471353 assert_eq ! ( rep. frame_no( ) , Some ( 4 ) ) ;
1348- assert_eq ! ( rep. start_frame_no( ) , Some ( 1 ) ) ;
1354+ assert_eq ! ( rep. start_frame_no( ) , Some ( 10 ) ) ;
1355+
1356+ let mut row = conn. query ( "select count(*) from user" , ( ) ) . await . unwrap ( ) ;
1357+ let count = row. next ( ) . await . unwrap ( ) . unwrap ( ) . get :: < u64 > ( 0 ) . unwrap ( ) ;
1358+ assert_eq ! ( count, 3 ) ;
13491359
13501360 Ok ( ( ) )
13511361 } ) ;
0 commit comments