mirror of https://github.com/milvus-io/milvus.git
Remove useless ut. (#19210)
Signed-off-by: sunby <bingyi.sun@zilliz.com> Signed-off-by: sunby <bingyi.sun@zilliz.com> Co-authored-by: sunby <bingyi.sun@zilliz.com>pull/18948/head
parent
525201decc
commit
92857a4888
|
@ -21,7 +21,6 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/milvus-io/milvus/internal/log"
|
||||
"github.com/milvus-io/milvus/internal/util/typeutil"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
@ -45,14 +44,6 @@ func Test_Tso(t *testing.T) {
|
|||
assert.Equal(t, physical.Unix(), pRes.Unix())
|
||||
assert.Equal(t, uint64(logical), lRes)
|
||||
})
|
||||
|
||||
t.Run("test GetCurrentTime", func(t *testing.T) {
|
||||
curTime := GetCurrentTime()
|
||||
p, l := ParseTS(curTime)
|
||||
subTime := time.Since(p)
|
||||
assert.Less(t, subTime, time.Millisecond)
|
||||
assert.Equal(t, typeutil.ZeroTimestamp, l)
|
||||
})
|
||||
}
|
||||
|
||||
func TestCalculateDuration(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue