@@ -13,8 +13,7 @@ use crate::tests::{gen_tx, gen_vicinity};
1313
1414static ROCKSDB_PATH : & str = "./free-space/system-contract/image-cell" ;
1515
16- #[ test]
17- fn test_write_functions ( ) {
16+ pub fn test_write_functions ( ) {
1817 let vicinity = gen_vicinity ( ) ;
1918 let mut backend = MemoryBackend :: new ( & vicinity, BTreeMap :: new ( ) ) ;
2019
@@ -43,7 +42,7 @@ fn test_update_first(backend: &mut MemoryBackend, executor: &ImageCellContract)
4342 assert ! ( r. exit_reason. is_succeed( ) ) ;
4443
4544 check_root ( backend, executor) ;
46- check_nounce ( backend, U256 :: one ( ) ) ;
45+ check_nounce ( backend, U256 :: from ( 2 ) ) ;
4746
4847 let cell_key = CellKey :: new ( [ 7u8 ; 32 ] , 0x0 ) ;
4948 let get_cell = executor. get_cell ( & cell_key) . unwrap ( ) . unwrap ( ) ;
@@ -66,7 +65,7 @@ fn test_update_second(backend: &mut MemoryBackend, executor: &ImageCellContract)
6665 assert ! ( r. exit_reason. is_succeed( ) ) ;
6766
6867 check_root ( backend, executor) ;
69- check_nounce ( backend, U256 :: from ( 2 ) ) ;
68+ check_nounce ( backend, U256 :: from ( 3 ) ) ;
7069
7170 let cell_key = CellKey :: new ( [ 7u8 ; 32 ] , 0x0 ) ;
7271 let get_cell = executor. get_cell ( & cell_key) . unwrap ( ) . unwrap ( ) ;
0 commit comments