@@ -498,17 +498,13 @@ mod tests {
498498 do_read_write_remove_list_persist, do_test_data_migration, do_test_store,
499499 } ;
500500
501- use bitcoin:: Txid ;
502-
503501 use lightning:: chain:: chainmonitor:: Persist ;
504- use lightning:: chain:: transaction:: OutPoint ;
505502 use lightning:: chain:: ChannelMonitorUpdateStatus ;
506503 use lightning:: check_closed_event;
507504 use lightning:: events:: { ClosureReason , MessageSendEventsProvider } ;
508505 use lightning:: ln:: functional_test_utils:: * ;
509506 use lightning:: util:: persist:: read_channel_monitors;
510507 use lightning:: util:: test_utils;
511- use std:: str:: FromStr ;
512508
513509 impl Drop for FilesystemStore {
514510 fn drop ( & mut self ) {
@@ -622,14 +618,7 @@ mod tests {
622618 perms. set_readonly ( true ) ;
623619 fs:: set_permissions ( path, perms) . unwrap ( ) ;
624620
625- let test_txo = OutPoint {
626- txid : Txid :: from_str (
627- "8984484a580b825b9972d7adb15050b3ab624ccd731946b3eeddb92f4e7ef6be" ,
628- )
629- . unwrap ( ) ,
630- index : 0 ,
631- } ;
632- match store. persist_new_channel ( test_txo, & added_monitors[ 0 ] . 1 ) {
621+ match store. persist_new_channel ( & added_monitors[ 0 ] . 1 ) {
633622 ChannelMonitorUpdateStatus :: UnrecoverableError => { } ,
634623 _ => panic ! ( "unexpected result from persisting new channel" ) ,
635624 }
@@ -676,14 +665,7 @@ mod tests {
676665 // handle, hence why the test is Windows-only.
677666 let store = FilesystemStore :: new ( ":<>/" . into ( ) ) ;
678667
679- let test_txo = OutPoint {
680- txid : Txid :: from_str (
681- "8984484a580b825b9972d7adb15050b3ab624ccd731946b3eeddb92f4e7ef6be" ,
682- )
683- . unwrap ( ) ,
684- index : 0 ,
685- } ;
686- match store. persist_new_channel ( test_txo, & added_monitors[ 0 ] . 1 ) {
668+ match store. persist_new_channel ( & added_monitors[ 0 ] . 1 ) {
687669 ChannelMonitorUpdateStatus :: UnrecoverableError => { } ,
688670 _ => panic ! ( "unexpected result from persisting new channel" ) ,
689671 }
0 commit comments