@@ -124,7 +124,7 @@ pub mod test {
124
124
Self { tmp, registry, wal }
125
125
}
126
126
127
- pub fn shared ( & self , namespace : & str ) -> Arc < SharedWal < IO > > {
127
+ pub fn shared ( & self , namespace : & str ) -> Arc < SharedWal < IO , TestStorage < IO > > > {
128
128
let path = self . tmp . path ( ) . join ( namespace) . join ( "data" ) ;
129
129
let registry = self . registry . clone ( ) ;
130
130
let namespace = NamespaceName :: from_string ( namespace. into ( ) ) ;
@@ -135,7 +135,10 @@ pub mod test {
135
135
self . tmp . path ( ) . join ( namespace)
136
136
}
137
137
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 > > > {
139
142
let path = self . db_path ( namespace) ;
140
143
let wal = self . wal . clone ( ) ;
141
144
std:: fs:: create_dir_all ( & path) . unwrap ( ) ;
@@ -159,7 +162,7 @@ pub mod test {
159
162
}
160
163
}
161
164
162
- pub fn seal_current_segment < IO : Io > ( shared : & SharedWal < IO > ) {
165
+ pub fn seal_current_segment < IO : Io > ( shared : & SharedWal < IO , TestStorage < IO > > ) {
163
166
let mut tx = shared. begin_read ( 99999 ) . into ( ) ;
164
167
shared. upgrade ( & mut tx) . unwrap ( ) ;
165
168
{
@@ -170,7 +173,7 @@ pub mod test {
170
173
tx. end ( ) ;
171
174
}
172
175
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 > ) {
174
177
let current = shared. current . load ( ) . next_frame_no ( ) . get ( ) - 1 ;
175
178
loop {
176
179
{
0 commit comments