mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-19 23:03:08 +00:00
rename InboundConfig methods
This commit is contained in:
1 parent
d325400f2e
commit
d4dcee5fa3
8 files changed
+19
-19
No files matched your search
@@ -19,11 +19,11 @@ func TestRegisterInboundConfig(t *testing.T) {
|
||||
err := RegisterInboundConfig(protocol, creator)
|
||||
assert.Error(err).IsNil()
|
||||
|
||||
configObj, err := CreateInboundConnectionConfig(protocol, nil)
|
||||
configObj, err := CreateInboundConfig(protocol, nil)
|
||||
assert.Bool(configObj.(bool)).IsTrue()
|
||||
assert.Error(err).IsNil()
|
||||
|
||||
configObj, err = CreateOutboundConnectionConfig(protocol, nil)
|
||||
configObj, err = CreateOutboundConfig(protocol, nil)
|
||||
assert.Pointer(configObj).IsNil()
|
||||
}
|
||||
|
||||
@@ -39,10 +39,10 @@ func TestRegisterOutboundConfig(t *testing.T) {
|
||||
err := RegisterOutboundConfig(protocol, creator)
|
||||
assert.Error(err).IsNil()
|
||||
|
||||
configObj, err := CreateOutboundConnectionConfig(protocol, nil)
|
||||
configObj, err := CreateOutboundConfig(protocol, nil)
|
||||
assert.Bool(configObj.(bool)).IsTrue()
|
||||
assert.Error(err).IsNil()
|
||||
|
||||
configObj, err = CreateInboundConnectionConfig(protocol, nil)
|
||||
configObj, err = CreateInboundConfig(protocol, nil)
|
||||
assert.Pointer(configObj).IsNil()
|
||||
}
|
||||
Reference in new issue
Block a user