remove last assert
This commit is contained in:
parent
479a144782
commit
26c03ed8d1
@ -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())
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user