From 302254b9b3fdf5fc7615e156b4768516ec4e3b3b Mon Sep 17 00:00:00 2001 From: Clement Date: Sat, 29 Jun 2024 02:37:55 +0800 Subject: [PATCH] fix lint errorgs Signed-off-by: Clement --- server/etcdserver/snapshot_tracker_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/etcdserver/snapshot_tracker_test.go b/server/etcdserver/snapshot_tracker_test.go index 27f2cf670d0..d2d00239dde 100644 --- a/server/etcdserver/snapshot_tracker_test.go +++ b/server/etcdserver/snapshot_tracker_test.go @@ -2,8 +2,9 @@ package etcdserver import ( "container/heap" - "github.com/stretchr/testify/assert" "testing" + + "github.com/stretchr/testify/assert" ) func TestSnapTracker_MinSnapi(t *testing.T) { @@ -65,6 +66,7 @@ func TestSnapTracker_UnTrack(t *testing.T) { st.UnTrack(20) minSnapi, err = st.MinSnapi() + assert.Nil(t, err) assert.Equal(t, uint64(40), minSnapi) st.UnTrack(40)