lntest: make compilable without subserver build tags

To make it possible to compile the itests together with the other tests,
we don't want to use anything from the optional subservers.
This commit is contained in:
Oliver Gugger committed 2020-09-21 21:16:32 +02:00
1 parent 719e32830d
commit 9f7d8dd92e
1 file changed
+2 -1
+2 -1
View File
@@ -13124,7 +13124,8 @@ func testSweepAllCoins(net *lntest.NetworkHarness, t *harnessTest) {
// Our error will be wrapped in a rpc error, so we check that it
// contains the error we expect.
if !strings.Contains(err.Error(), walletrpc.ErrZeroLabel.Error()) {
errZeroLabel := "cannot label transaction with empty label"
if !strings.Contains(err.Error(), errZeroLabel) {
t.Fatalf("expected: zero label error, got: %v", err)
}