mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
wait until dns server is up
This commit is contained in:
@@ -50,6 +50,7 @@ func TestUDPServer(t *testing.T) {
|
||||
}
|
||||
|
||||
go dnsServer.ListenAndServe()
|
||||
time.Sleep(time.Second)
|
||||
|
||||
config := &core.Config{
|
||||
App: []*serial.TypedMessage{
|
||||
@@ -113,6 +114,7 @@ func TestPrioritizedDomain(t *testing.T) {
|
||||
}
|
||||
|
||||
go dnsServer.ListenAndServe()
|
||||
time.Sleep(time.Second)
|
||||
|
||||
config := &core.Config{
|
||||
App: []*serial.TypedMessage{
|
||||
|
||||
Reference in New Issue
Block a user