mirror of
https://github.com/danog/dns-over-https.git
synced 2024-12-04 02:07:46 +01:00
Avoid rate limiting
This commit is contained in:
parent
ae31cdf94e
commit
9022700aec
@ -34,7 +34,7 @@ class IntegrationTest extends AsyncTestCase
|
|||||||
$inAddr,
|
$inAddr,
|
||||||
"Server name $hostname did not resolve to a valid IP address"
|
"Server name $hostname did not resolve to a valid IP address"
|
||||||
);
|
);
|
||||||
//\usleep(500*1000);
|
\usleep(500*1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -54,7 +54,7 @@ class IntegrationTest extends AsyncTestCase
|
|||||||
delay(0.5);
|
delay(0.5);
|
||||||
$result = \is_array(Dns\resolve('google.com'));
|
$result = \is_array(Dns\resolve('google.com'));
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
//\usleep(500*1000);
|
\usleep(500*1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -80,7 +80,7 @@ class IntegrationTest extends AsyncTestCase
|
|||||||
"Server name google.com did not resolve to a valid IP address"
|
"Server name google.com did not resolve to a valid IP address"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//\usleep(500*1000);
|
\usleep(500*1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -106,7 +106,7 @@ class IntegrationTest extends AsyncTestCase
|
|||||||
"Server name google.com did not resolve to a valid IP address"
|
"Server name google.com did not resolve to a valid IP address"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//\usleep(500*1000);
|
\usleep(500*1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -128,7 +128,7 @@ class IntegrationTest extends AsyncTestCase
|
|||||||
$this->assertSame("dns.google", $record->getValue());
|
$this->assertSame("dns.google", $record->getValue());
|
||||||
$this->assertNotNull($record->getTtl());
|
$this->assertNotNull($record->getTtl());
|
||||||
$this->assertSame(Record::PTR, $record->getType());
|
$this->assertSame(Record::PTR, $record->getType());
|
||||||
//\usleep(500*1000);
|
\usleep(500*1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function provideServersAndHostnames()
|
public function provideServersAndHostnames()
|
||||||
|
Loading…
Reference in New Issue
Block a user