From 5e175b9de7edcce4bf9a6c63fc129f47a2b2d12f Mon Sep 17 00:00:00 2001 From: yulin-liang Date: Thu, 12 Nov 2020 20:23:33 -0800 Subject: [PATCH] Fix ios flaky tests --- src/objective-c/GRPCClient/private/GRPCCore/GRPCCallInternal.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objective-c/GRPCClient/private/GRPCCore/GRPCCallInternal.m b/src/objective-c/GRPCClient/private/GRPCCore/GRPCCallInternal.m index 2610876b5a8..4c42ba80399 100644 --- a/src/objective-c/GRPCClient/private/GRPCCore/GRPCCallInternal.m +++ b/src/objective-c/GRPCClient/private/GRPCCore/GRPCCallInternal.m @@ -249,7 +249,7 @@ } - (void)issueInitialMetadata:(NSDictionary *)initialMetadata { - if (initialMetadata != nil && [initialMetadata count] == 0) { + if (initialMetadata != nil) { // cannot directly call callback because this may not be running on manager's dispatch queue GRPCTransportManager *copiedManager = _transportManager; dispatch_async(copiedManager.dispatchQueue, ^{