@@ -124,7 +124,7 @@ pub mod test {
124124 Self { tmp, registry, wal }
125125 }
126126
127- pub fn shared ( & self , namespace : & str ) -> Arc < SharedWal < IO > > {
127+ pub fn shared ( & self , namespace : & str ) -> Arc < SharedWal < IO , TestStorage < IO > > > {
128128 let path = self . tmp . path ( ) . join ( namespace) . join ( "data" ) ;
129129 let registry = self . registry . clone ( ) ;
130130 let namespace = NamespaceName :: from_string ( namespace. into ( ) ) ;
@@ -135,7 +135,10 @@ pub mod test {
135135 self . tmp . path ( ) . join ( namespace)
136136 }
137137
138- pub fn open_conn ( & self , namespace : & ' static str ) -> libsql_sys:: Connection < LibsqlWal < IO > > {
138+ pub fn open_conn (
139+ & self ,
140+ namespace : & ' static str ,
141+ ) -> libsql_sys:: Connection < LibsqlWal < IO , TestStorage < IO > > > {
139142 let path = self . db_path ( namespace) ;
140143 let wal = self . wal . clone ( ) ;
141144 std:: fs:: create_dir_all ( & path) . unwrap ( ) ;
@@ -159,7 +162,7 @@ pub mod test {
159162 }
160163 }
161164
162- pub fn seal_current_segment < IO : Io > ( shared : & SharedWal < IO > ) {
165+ pub fn seal_current_segment < IO : Io > ( shared : & SharedWal < IO , TestStorage < IO > > ) {
163166 let mut tx = shared. begin_read ( 99999 ) . into ( ) ;
164167 shared. upgrade ( & mut tx) . unwrap ( ) ;
165168 {
@@ -170,7 +173,7 @@ pub mod test {
170173 tx. end ( ) ;
171174 }
172175
173- pub async fn wait_current_durable < IO : Io > ( shared : & SharedWal < IO > ) {
176+ pub async fn wait_current_durable < IO : Io > ( shared : & SharedWal < IO , TestStorage > ) {
174177 let current = shared. current . load ( ) . next_frame_no ( ) . get ( ) - 1 ;
175178 loop {
176179 {
0 commit comments