summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Milde <daniel@milde.cz>2024-02-18 20:11:09 +0100
committerDaniel Milde <daniel@milde.cz>2024-02-18 20:18:41 +0100
commitba089e58b07699cccaee274159b8322f5a5fcf70 (patch)
treee13b5330c41c7abdcfc4f7182a19bd6e7edf29ec
parentd0b42df9d92a3f2b5167747d221ff4c36c8cf32e (diff)
test: fix footer test
-rw-r--r--tui/tui_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/tui/tui_test.go b/tui/tui_test.go
index 274385e..0a3dbcd 100644
--- a/tui/tui_test.go
+++ b/tui/tui_test.go
@@ -3,6 +3,7 @@ package tui
import (
"bytes"
"errors"
+ "fmt"
"testing"
log "github.com/sirupsen/logrus"
@@ -57,12 +58,12 @@ func TestFooter(t *testing.T) {
printScreen(simScreen)
- text := []byte(" Total disk usage: 4.0 KiB Apparent size: 2 B Items: 1")
+ text := []byte(" Total disk usage: 4.0 KiB Apparent size: 2 B Items: 1")
for i, r := range b {
if i >= len(text) {
break
}
- assert.Equal(t, string(text[i]), string(r.Bytes[0]))
+ assert.Equal(t, string(text[i]), string(r.Bytes[0]), fmt.Sprintf("Index: %d", i))
}
}