Refraction-Name (#133)
* Refraction-Name Synchronization optimization and code reduction * Refraction-Name * Refraction-Name
This commit is contained in:
1 parent
759e3e7232
commit
acb16186b2
3 files changed
+41
-40
No files matched your search
@@ -33,7 +33,7 @@ func TestProtectedDialer_PrepareDomain(t *testing.T) {
|
||||
// {"", args{"110.110.110.110:443"}},
|
||||
// {"", args{"[2002:1234::1]:443"}},
|
||||
}
|
||||
d := NewPreotectedDialer(fakeSupportSet{})
|
||||
d := NewProtectedDialer(fakeSupportSet{})
|
||||
for _, tt := range tests {
|
||||
ch := make(chan struct{})
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
@@ -66,7 +66,7 @@ func TestProtectedDialer_Dial(t *testing.T) {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
ch := make(chan struct{})
|
||||
|
||||
d := NewPreotectedDialer(fakeSupportSet{})
|
||||
d := NewProtectedDialer(fakeSupportSet{})
|
||||
d.currentServer = tt.name
|
||||
|
||||
go d.PrepareDomain(tt.name, ch, false)
|
||||
|
||||
Reference in new issue
Block a user