diff --git a/bar_test.go b/bar_test.go index 88145d2..6a467f1 100644 --- a/bar_test.go +++ b/bar_test.go @@ -288,3 +288,8 @@ return "" }) } + +func getLastLine(bb []byte) []byte { + split := bytes.Split(bb, []byte("\n")) + return split[len(split)-2] +} diff --git a/progress_test.go b/progress_test.go index be07ab4..e25925e 100644 --- a/progress_test.go +++ b/progress_test.go @@ -1,7 +1,6 @@ package mpb_test import ( - "bytes" "context" "io/ioutil" "math/rand" @@ -189,11 +188,6 @@ } } -func getLastLine(bb []byte) []byte { - split := bytes.Split(bb, []byte("\n")) - return split[len(split)-2] -} - func randomDuration(max time.Duration) time.Duration { return time.Duration(rand.Intn(10)+1) * max / 10 }