Skip to content

Commit

Permalink
Put another limit on gRPC backoff (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpbrewster authored Nov 28, 2018
1 parent 024b074 commit 15ec4ce
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/testing/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,13 @@ export function loadFirestoreRules(

let client = new EMULATOR.FirestoreEmulator(
FIRESTORE_ADDRESS,
grpc.credentials.createInsecure()
grpc.credentials.createInsecure(),
{
// Cap how much backoff gRPC will perform. This is testing code, so
// efficiency is less important than responsiveness.
'grpc.initial_reconnect_backoff_ms': 100,
'grpc.max_reconnect_backoff_ms': 100
}
);
return new Promise((resolve, reject) => {
client.setSecurityRules(
Expand Down

0 comments on commit 15ec4ce

Please sign in to comment.