From 26c03ed8d11693e1d91bbcadb2af0f5e50aa417b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 24 May 2021 00:11:58 +0300 Subject: [PATCH] remove last assert --- rootfs/tree_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootfs/tree_test.go b/rootfs/tree_test.go index 45398dc..4fc0bc0 100644 --- a/rootfs/tree_test.go +++ b/rootfs/tree_test.go @@ -2,8 +2,6 @@ package rootfs import ( "testing" - - "github.com/stretchr/testify/assert" ) func TestTree(t *testing.T) { @@ -99,7 +97,9 @@ func TestString(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { 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()) + } }) } }