mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
HarnessNode.Start calls WaitUntilStarted, then immediately reads LitMacPath off disk via connectLitRPC to set up hn.litConn. But WaitUntilStarted only polled subservers.LND's Running status, not LiT's own - and litd only bakes and writes its default macaroons to disk during its own startInternalSubServers step, strictly after LND is marked Running but before LiT itself is. That left a window where the harness read LitMacPath before litd had written it, failing with "open .../lit.macaroon: no such file or directory" (TestLightningTerminal/.../terminal_stateless_init_mode, CI run 29407791912). Wait for subservers.LIT's Running status alongside the existing per-subserver checks so callers can't observe LiT as "started" before it has finished baking its macaroons. |
||
|---|---|---|
| .. | ||
| assertions.go | ||
| litd_accounts_test.go | ||
| litd_firewall_test.go | ||
| litd_migration_test.go | ||
| litd_mode_integrated_test.go | ||
| litd_mode_remote_test.go | ||
| litd_node.go | ||
| litd_stateless_init_test.go | ||
| litd_test.go | ||
| litd_test_list_off_test.go | ||
| litd_test_list_on_test.go | ||
| log.go | ||
| network_harness.go | ||
| server_harness.go | ||
| test_harness.go | ||