remove last assert

This commit is contained in:
Motiejus Jakštys 2021-05-24 00:11:58 +03:00
parent 479a144782
commit 26c03ed8d1

View File

@ -2,8 +2,6 @@ package rootfs
import ( import (
"testing" "testing"
"github.com/stretchr/testify/assert"
) )
func TestTree(t *testing.T) { func TestTree(t *testing.T) {
@ -99,7 +97,9 @@ func TestString(t *testing.T) {
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
tree := newTree(tt.paths...) tree := newTree(tt.paths...)
assert.Equal(t, tt.wantStr, tree.String()) if tt.wantStr != tree.String() {
t.Errorf("want != got: %q != %q", tt.wantStr, tree.String())
}
}) })
} }
} }