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)