File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -923,13 +923,16 @@ mod cache_data_test{
923923 assert_eq ! ( rrstore_data_vec_ns. len( ) , 1 ) ;
924924 }
925925 }
926+ assert_eq ! ( record_types_data. len( ) , 2 ) ;
926927
927928 println ! ( "Before timeout: {:?}" , Utc :: now( ) ) ;
928929 thread:: sleep ( time:: Duration :: from_secs ( 5 ) ) ;
929930 println ! ( "After timeout: {:?}" , Utc :: now( ) ) ;
930931 cache_record_type. filter_timeout_by_rtype ( ) ;
931932
932933 let record_types_data_after_cleaning = cache_record_type. get_cache_data ( ) ;
934+
935+ assert_eq ! ( record_types_data_after_cleaning. len( ) , 1 ) ;
933936
934937 if let Some ( record_types_data_a) = record_types_data_after_cleaning. get ( & Rtype :: A ) {
935938 if let Some ( rrstore_data_vec_a) = record_types_data_a. clone ( ) . get_from_host_data ( domain_name_1. clone ( ) ) {
You can’t perform that action at this time.
0 commit comments