mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-06 17:25:27 -05:00
fully migrate to new assertion lib
This commit is contained in:
@@ -6,12 +6,12 @@ import (
|
||||
"v2ray.com/core/common/predicate"
|
||||
. "v2ray.com/core/common/protocol"
|
||||
"v2ray.com/core/common/uuid"
|
||||
"v2ray.com/core/testing/assert"
|
||||
. "v2ray.com/ext/assert"
|
||||
)
|
||||
|
||||
func TestCmdKey(t *testing.T) {
|
||||
assert := assert.On(t)
|
||||
assert := With(t)
|
||||
|
||||
id := NewID(uuid.New())
|
||||
assert.Bool(predicate.BytesAll(id.CmdKey(), 0)).IsFalse()
|
||||
assert(predicate.BytesAll(id.CmdKey(), 0), IsFalse)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user