Skip to content

Commit

Permalink
change lnd macaroon path in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elnosh committed May 27, 2024
1 parent 74fd0b7 commit cd53e2a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions testutils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,8 @@ func mintConfig(lnd *btcdocker.Lnd, key, port, dbpath string) (*mint.Config, err
DBPath: dbpath,
}
nodeDir := lnd.LndDir
currentDir, err := os.Getwd()
if err != nil {
return nil, fmt.Errorf("error getting current dir: %v", err)
}

macaroonPath := filepath.Join(currentDir, "/admin.macaroon")
macaroonPath := filepath.Join(dbpath, "/admin.macaroon")
file, err := os.Create(macaroonPath)
if err != nil {
return nil, fmt.Errorf("error creating macaroon file: %v", err)
Expand Down

0 comments on commit cd53e2a

Please sign in to comment.