tstest: rename LogListener to LogLineTracker

But mostly to rename tstest.ListenFor which has no mention of log lines in it.
It sounded like a net.Listener or something.
This commit is contained in:
Brad Fitzpatrick
2020-09-04 08:09:56 -07:00
parent 95cddfcc75
commit 68c42530e9
3 changed files with 47 additions and 44 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ import (
// being logged by the expected functions. Update these tests if moving log lines between
// functions.
func TestLocalLogLines(t *testing.T) {
logListen := tstest.ListenFor(t.Logf, []string{
logListen := tstest.NewLogLineTracker(t.Logf, []string{
"SetPrefs: %v",
"peer keys: %s",
"v%v peers: %v",