@@ -6369,8 +6369,8 @@ Some unrelated content.
63696369 assert_eq ! ( first. bullets. len( ) , 2 ) ;
63706370 }
63716371
6372- #[ test]
6373- fn delete_applied_pattern_removes_one_bullet_and_keeps_section ( ) {
6372+ #[ tokio :: test]
6373+ async fn delete_applied_pattern_removes_one_bullet_and_keeps_section ( ) {
63746374 let tmp = tempfile:: tempdir ( ) . expect ( "tempdir" ) ;
63756375 write_claude_md_with_headroom_block ( tmp. path ( ) ) ;
63766376
@@ -6380,6 +6380,7 @@ Some unrelated content.
63806380 "First Section" . into ( ) ,
63816381 "First bullet." . into ( ) ,
63826382 )
6383+ . await
63836384 . expect ( "delete bullet" ) ;
63846385
63856386 let result = read_applied_patterns_for_project ( tmp. path ( ) . to_str ( ) . unwrap ( ) ) ;
@@ -6395,8 +6396,8 @@ Some unrelated content.
63956396 ) ;
63966397 }
63976398
6398- #[ test]
6399- fn delete_applied_pattern_drops_last_section_and_keeps_block_parseable ( ) {
6399+ #[ tokio :: test]
6400+ async fn delete_applied_pattern_drops_last_section_and_keeps_block_parseable ( ) {
64006401 // Regression: deleting the last bullet in the last section used to
64016402 // truncate the block's trailing end marker, leaving the file
64026403 // unparseable. After the fix, the block must still be reparseable
@@ -6410,6 +6411,7 @@ Some unrelated content.
64106411 "Second Section" . into ( ) ,
64116412 "Third bullet." . into ( ) ,
64126413 )
6414+ . await
64136415 . expect ( "delete bullet" ) ;
64146416
64156417 let result = read_applied_patterns_for_project ( tmp. path ( ) . to_str ( ) . unwrap ( ) ) ;
@@ -6438,8 +6440,8 @@ Some unrelated content.
64386440 ) ;
64396441 }
64406442
6441- #[ test]
6442- fn delete_applied_pattern_rejects_unknown_file_kind ( ) {
6443+ #[ tokio :: test]
6444+ async fn delete_applied_pattern_rejects_unknown_file_kind ( ) {
64436445 let tmp = tempfile:: tempdir ( ) . expect ( "tempdir" ) ;
64446446 write_claude_md_with_headroom_block ( tmp. path ( ) ) ;
64456447
@@ -6449,6 +6451,7 @@ Some unrelated content.
64496451 "First Section" . into ( ) ,
64506452 "First bullet." . into ( ) ,
64516453 )
6454+ . await
64526455 . expect_err ( "unknown file_kind rejected" ) ;
64536456 assert ! (
64546457 err. contains( "Unknown file_kind" ) ,
0 commit comments