From 9f7d8dd92e9c1f9e7cf482e4f9bdbf9149d77684 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Fri, 4 Sep 2020 13:47:56 +0200 Subject: [PATCH] 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. --- lntest/itest/lnd_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lntest/itest/lnd_test.go b/lntest/itest/lnd_test.go index 6b3ba1f51..4149802a1 100644 --- a/lntest/itest/lnd_test.go +++ b/lntest/itest/lnd_test.go @@ -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) }