mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-05 21:53:12 +02:00
itest: remove direct reference to stanby nodes
Prepares the upcoming refactor. We now never call `ht.Alice` directly, instead, we always init `alice := ht.Alice` so it's easier to see how they are removed in a following commit.
This commit is contained in:
@@ -237,6 +237,8 @@ func testRestAPI(ht *lntest.HarnessTest) {
|
||||
}
|
||||
|
||||
func wsTestCaseSubscription(ht *lntest.HarnessTest) {
|
||||
alice := ht.Alice
|
||||
|
||||
// Find out the current best block so we can subscribe to the next one.
|
||||
hash, height := ht.GetBestBlock()
|
||||
|
||||
@@ -246,7 +248,7 @@ func wsTestCaseSubscription(ht *lntest.HarnessTest) {
|
||||
Height: uint32(height),
|
||||
}
|
||||
url := "/v2/chainnotifier/register/blocks"
|
||||
c, err := openWebSocket(ht.Alice, url, "POST", req, nil)
|
||||
c, err := openWebSocket(alice, url, "POST", req, nil)
|
||||
require.NoError(ht, err, "websocket")
|
||||
defer func() {
|
||||
err := c.WriteMessage(websocket.CloseMessage, closeMsg)
|
||||
|
Reference in New Issue
Block a user