From 4a1a9d6b14d27fc2418c159eeb9fcb89b9f751fd Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Tue, 9 Jan 2018 12:59:32 +0100 Subject: [PATCH] lnd_test: add name of testcase to node's logfile This commit adds a line of text including a test case's name to Alice's and Bob's logfiles during integration tests, making it easier to seek for the place in the log where the specific tests start. --- lnd_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lnd_test.go b/lnd_test.go index 63212522f..0292e278d 100644 --- a/lnd_test.go +++ b/lnd_test.go @@ -4847,6 +4847,15 @@ func TestLightningNetworkDaemon(t *testing.T) { t.Logf("Running %v integration tests", len(testsCases)) for _, testCase := range testsCases { + logLine := fmt.Sprintf("STARTING ============ %v ============\n", + testCase.name) + if err := lndHarness.Alice.AddToLog(logLine); err != nil { + t.Fatalf("unable to add to log: %v", err) + } + if err := lndHarness.Bob.AddToLog(logLine); err != nil { + t.Fatalf("unable to add to log: %v", err) + } + success := t.Run(testCase.name, func(t1 *testing.T) { ht := newHarnessTest(t1) ht.RunTestCase(testCase, lndHarness)