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{
923
923
assert_eq ! ( rrstore_data_vec_ns. len( ) , 1 ) ;
924
924
}
925
925
}
926
+ assert_eq ! ( record_types_data. len( ) , 2 ) ;
926
927
927
928
println ! ( "Before timeout: {:?}" , Utc :: now( ) ) ;
928
929
thread:: sleep ( time:: Duration :: from_secs ( 5 ) ) ;
929
930
println ! ( "After timeout: {:?}" , Utc :: now( ) ) ;
930
931
cache_record_type. filter_timeout_by_rtype ( ) ;
931
932
932
933
let record_types_data_after_cleaning = cache_record_type. get_cache_data ( ) ;
934
+
935
+ assert_eq ! ( record_types_data_after_cleaning. len( ) , 1 ) ;
933
936
934
937
if let Some ( record_types_data_a) = record_types_data_after_cleaning. get ( & Rtype :: A ) {
935
938
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