Expand admin tools and harden storage operations
This commit is contained in:
1 parent
fbec6694df
commit
5304dfc047
86 files changed
+8111
-1102
No files matched your search
@@ -121,6 +121,15 @@ public final class FeatureTest {
|
||||
status(200, client.send(HttpTest.signedUriAs(ownReadable,
|
||||
"GET", new byte[0], Map.of(), LIMITED, LIMITED_SECRET), HttpResponse.BodyHandlers.ofString()));
|
||||
var trafficAfter = metrics.dataSnapshot();
|
||||
long metricsDeadline = System.nanoTime() + 2_000_000_000L;
|
||||
while (System.nanoTime() < metricsDeadline &&
|
||||
(trafficAfter.requests() - trafficBefore.requests() < 2 ||
|
||||
trafficAfter.inboundBytes() - trafficBefore.inboundBytes() < content.length ||
|
||||
trafficAfter.outboundBytes() - trafficBefore.outboundBytes() < content.length ||
|
||||
trafficAfter.inFlight() != 0)) {
|
||||
Thread.sleep(10);
|
||||
trafficAfter = metrics.dataSnapshot();
|
||||
}
|
||||
if (trafficAfter.requests() - trafficBefore.requests() != 2 ||
|
||||
trafficAfter.inboundBytes() - trafficBefore.inboundBytes() < content.length ||
|
||||
trafficAfter.outboundBytes() - trafficBefore.outboundBytes() < content.length ||
|
||||
|
||||
Reference in new issue
Block a user