From 3eee4e4259155b712319047e25cfa4e34cc9be73 Mon Sep 17 00:00:00 2001 From: godchen Date: Mon, 4 Oct 2021 17:36:06 +0800 Subject: [PATCH] Add segment replica test error check (#9212) Signed-off-by: godchen --- internal/datanode/segment_replica_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/datanode/segment_replica_test.go b/internal/datanode/segment_replica_test.go index 4c68eea031..a77e81ecec 100644 --- a/internal/datanode/segment_replica_test.go +++ b/internal/datanode/segment_replica_test.go @@ -368,7 +368,9 @@ func TestSegmentReplica_InterfaceMethod(te *testing.T) { sr.flushedSegments[test.flushedSegID] = &Segment{} } sr.updateSegmentEndPosition(test.inSegID, new(internalpb.MsgPosition)) - sr.removeSegment(0) + err := sr.removeSegment(0) + assert.Nil(t, err) + }) } })