@@ -354,7 +354,6 @@ mod tests {
354354 use vortex_buffer:: buffer;
355355 use vortex_buffer:: buffer_mut;
356356 use vortex_error:: VortexResult ;
357- use vortex_session:: VortexSession ;
358357 use vortex_session:: registry:: ReadContext ;
359358
360359 use crate :: ArrayContext ;
@@ -363,6 +362,7 @@ mod tests {
363362 use crate :: ExecutionCtx ;
364363 use crate :: IntoArray ;
365364 use crate :: LEGACY_SESSION ;
365+ use crate :: array_session;
366366 use crate :: arrays:: Patched ;
367367 use crate :: arrays:: PatchedArray ;
368368 use crate :: arrays:: PrimitiveArray ;
@@ -389,7 +389,7 @@ mod tests {
389389 )
390390 . unwrap ( ) ;
391391
392- let session = VortexSession :: empty ( ) ;
392+ let session = array_session ( ) ;
393393 let mut ctx = ExecutionCtx :: new ( session) ;
394394
395395 let array = Patched :: from_array_and_patches ( values, & patches, & mut ctx)
@@ -422,7 +422,7 @@ mod tests {
422422 )
423423 . unwrap ( ) ;
424424
425- let session = VortexSession :: empty ( ) ;
425+ let session = array_session ( ) ;
426426 let mut ctx = ExecutionCtx :: new ( session) ;
427427
428428 let array = Patched :: from_array_and_patches ( values, & patches, & mut ctx)
@@ -455,7 +455,7 @@ mod tests {
455455 )
456456 . unwrap ( ) ;
457457
458- let session = VortexSession :: empty ( ) ;
458+ let session = array_session ( ) ;
459459 let mut ctx = ExecutionCtx :: new ( session) ;
460460
461461 let array = Patched :: from_array_and_patches ( values, & patches, & mut ctx)
@@ -488,7 +488,7 @@ mod tests {
488488 )
489489 . unwrap ( ) ;
490490
491- let session = VortexSession :: empty ( ) ;
491+ let session = array_session ( ) ;
492492 let mut ctx = ExecutionCtx :: new ( session) ;
493493
494494 let array = Patched :: from_array_and_patches ( values, & patches, & mut ctx)
@@ -525,7 +525,7 @@ mod tests {
525525 )
526526 . unwrap ( ) ;
527527
528- let session = VortexSession :: empty ( ) ;
528+ let session = array_session ( ) ;
529529 let mut ctx = ExecutionCtx :: new ( session) ;
530530
531531 let array = Patched :: from_array_and_patches ( values, & patches, & mut ctx)
@@ -569,7 +569,7 @@ mod tests {
569569
570570 let patches = Patches :: new ( len, 0 , indices, patch_vals, None ) ?;
571571
572- let session = VortexSession :: empty ( ) ;
572+ let session = array_session ( ) ;
573573 let mut ctx = ExecutionCtx :: new ( session) ;
574574
575575 Patched :: from_array_and_patches ( array, & patches, & mut ctx)
@@ -646,7 +646,7 @@ mod tests {
646646 assert_eq ! ( array_ref. dtype( ) , new_array. dtype( ) ) ;
647647
648648 // Execute both and compare results
649- let mut ctx = ExecutionCtx :: new ( VortexSession :: empty ( ) ) ;
649+ let mut ctx = ExecutionCtx :: new ( array_session ( ) ) ;
650650 let original_executed = array_ref. execute :: < Canonical > ( & mut ctx) ?. into_primitive ( ) ;
651651 let new_executed = new_array. execute :: < Canonical > ( & mut ctx) ?. into_primitive ( ) ;
652652
@@ -672,7 +672,7 @@ mod tests {
672672 let new_array = array_ref. with_slots ( slots. into_slots ( ) ) ?;
673673
674674 // Execute and verify the inner values changed (except at patch positions)
675- let mut ctx = ExecutionCtx :: new ( VortexSession :: empty ( ) ) ;
675+ let mut ctx = ExecutionCtx :: new ( array_session ( ) ) ;
676676 let executed = new_array. execute :: < Canonical > ( & mut ctx) ?. into_primitive ( ) ;
677677
678678 // Expected: all 5s except indices 1, 2, 3 which are patched to 10, 20, 30
0 commit comments