Browse Source

fix broken test

Darien Raymond 7 years ago
parent
commit
4b885f5775
1 changed files with 2 additions and 1 deletions
  1. 2 1
      v2ray_test.go

+ 2 - 1
v2ray_test.go

@@ -14,6 +14,7 @@ import (
 	"v2ray.com/core/common/serial"
 	"v2ray.com/core/common/serial"
 	"v2ray.com/core/common/uuid"
 	"v2ray.com/core/common/uuid"
 	"v2ray.com/core/features/dns"
 	"v2ray.com/core/features/dns"
+	"v2ray.com/core/features/dns/localdns"
 	_ "v2ray.com/core/main/distro/all"
 	_ "v2ray.com/core/main/distro/all"
 	"v2ray.com/core/proxy/dokodemo"
 	"v2ray.com/core/proxy/dokodemo"
 	"v2ray.com/core/proxy/vmess"
 	"v2ray.com/core/proxy/vmess"
@@ -30,7 +31,7 @@ func TestV2RayDependency(t *testing.T) {
 		}
 		}
 		wait <- true
 		wait <- true
 	})
 	})
-	instance.AddFeature(dns.LocalClient{})
+	instance.AddFeature(localdns.New())
 	<-wait
 	<-wait
 }
 }