Skip to content

Commit

Permalink
Remove useless ut. (milvus-io#19210)
Browse files Browse the repository at this point in the history
Signed-off-by: sunby <[email protected]>

Signed-off-by: sunby <[email protected]>
Co-authored-by: sunby <[email protected]>
  • Loading branch information
sunby and sunby authored Sep 15, 2022
1 parent 525201d commit 92857a4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions internal/util/tsoutil/tso_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand All @@ -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) {
Expand Down

0 comments on commit 92857a4

Please sign in to comment.