@@ -81,7 +81,7 @@ pub async fn init_coffee_test_with_cln() -> anyhow::Result<()> {
81
81
let lightning_dir = lightning_dir. strip_suffix ( "/regtest" ) . unwrap ( ) ;
82
82
log:: info!( "lightning path: {lightning_dir}" ) ;
83
83
84
- manager. coffee ( ) . setup ( & lightning_dir) . await ?;
84
+ manager. coffee ( ) . link ( & lightning_dir) . await ?;
85
85
86
86
Ok ( ( ) )
87
87
}
@@ -103,7 +103,7 @@ pub async fn init_coffee_test_add_remote() {
103
103
let lightning_dir = lightning_dir. strip_suffix ( "/regtest" ) . unwrap ( ) ;
104
104
log:: info!( "lightning path: {lightning_dir}" ) ;
105
105
106
- manager. coffee ( ) . setup ( & lightning_dir) . await . unwrap ( ) ;
106
+ manager. coffee ( ) . link ( & lightning_dir) . await . unwrap ( ) ;
107
107
108
108
manager
109
109
. coffee ( )
@@ -135,7 +135,7 @@ pub async fn test_add_remove_plugins() {
135
135
let lightning_dir = lightning_dir. strip_suffix ( "/regtest" ) . unwrap ( ) ;
136
136
log:: info!( "lightning path: {lightning_dir}" ) ;
137
137
138
- manager. coffee ( ) . setup ( & lightning_dir) . await . unwrap ( ) ;
138
+ manager. coffee ( ) . link ( & lightning_dir) . await . unwrap ( ) ;
139
139
// Add lightningd remote repository
140
140
let repo_name = "lightningd" ;
141
141
let repo_url = "https://github.com/lightningd/plugins.git" ;
@@ -254,7 +254,7 @@ pub async fn test_errors_and_show() {
254
254
let lightning_dir = lightning_dir. strip_suffix ( "/regtest" ) . unwrap ( ) ;
255
255
log:: info!( "lightning path: {lightning_dir}" ) ;
256
256
257
- manager. coffee ( ) . setup ( & lightning_dir) . await . unwrap ( ) ;
257
+ manager. coffee ( ) . link ( & lightning_dir) . await . unwrap ( ) ;
258
258
// Add lightningd remote repository
259
259
let repo_name = "lightningd" ;
260
260
let repo_url = "https://github.com/lightningd/plugins.git" ;
@@ -341,7 +341,7 @@ pub async fn install_plugin_in_two_networks() -> anyhow::Result<()> {
341
341
network : "regtest" . to_string ( ) ,
342
342
} ;
343
343
let mut manager = CoffeeTesting :: tmp_with_args ( & args, dir. clone ( ) ) . await ?;
344
- let result = manager. coffee ( ) . setup ( & lightning_regtest_dir) . await ;
344
+ let result = manager. coffee ( ) . link ( & lightning_regtest_dir) . await ;
345
345
assert ! ( result. is_ok( ) , "{:?}" , result) ;
346
346
// Add lightningd remote repository
347
347
manager
@@ -378,11 +378,7 @@ pub async fn install_plugin_in_two_networks() -> anyhow::Result<()> {
378
378
let mut manager = CoffeeTesting :: tmp_with_args ( & new_args, dir. clone ( ) ) . await ?;
379
379
let new_root_path = manager. root_path ( ) . to_owned ( ) ;
380
380
assert_eq ! ( dir. path( ) , new_root_path. path( ) ) ;
381
- manager
382
- . coffee ( )
383
- . setup ( & lightning_testnet_dir)
384
- . await
385
- . unwrap ( ) ;
381
+ manager. coffee ( ) . link ( & lightning_testnet_dir) . await . unwrap ( ) ;
386
382
387
383
let result = manager
388
384
. coffee ( )
@@ -416,7 +412,7 @@ pub async fn test_double_slash() {
416
412
let lightning_dir = cln. rpc ( ) . getinfo ( ) . unwrap ( ) . ligthning_dir ;
417
413
let lightning_dir = lightning_dir. strip_suffix ( "/regtest" ) . unwrap ( ) ;
418
414
log:: info!( "lightning path: {lightning_dir}" ) ;
419
- manager. coffee ( ) . setup ( & lightning_dir) . await . unwrap ( ) ;
415
+ manager. coffee ( ) . link ( & lightning_dir) . await . unwrap ( ) ;
420
416
421
417
// Add lightningd remote repository
422
418
let repo_name = "lightningd" ;
@@ -481,7 +477,7 @@ pub async fn test_plugin_installation_path() {
481
477
let lightning_dir = lightning_dir. strip_suffix ( "/regtest" ) . unwrap ( ) ;
482
478
log:: info!( "lightning path: {lightning_dir}" ) ;
483
479
484
- manager. coffee ( ) . setup ( & lightning_dir) . await . unwrap ( ) ;
480
+ manager. coffee ( ) . link ( & lightning_dir) . await . unwrap ( ) ;
485
481
486
482
// Add lightningd remote repository
487
483
manager
@@ -589,7 +585,7 @@ pub async fn test_nurse_repository_missing_on_disk() {
589
585
let lightning_dir = lightning_dir. strip_suffix ( "/regtest" ) . unwrap ( ) ;
590
586
log:: info!( "lightning path: {lightning_dir}" ) ;
591
587
592
- manager. coffee ( ) . setup ( & lightning_dir) . await . unwrap ( ) ;
588
+ manager. coffee ( ) . link ( & lightning_dir) . await . unwrap ( ) ;
593
589
594
590
// Construct the root path
595
591
let root_path = manager
0 commit comments