From 7360d9ccc27fb9c0f9580fda3a72103497036736 Mon Sep 17 00:00:00 2001 From: Arjan Bal Date: Sat, 13 Jul 2024 22:20:09 +0530 Subject: [PATCH] Ensure we push atmost once to the nackCh --- test/xds/xds_server_certificate_providers_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/xds/xds_server_certificate_providers_test.go b/test/xds/xds_server_certificate_providers_test.go index b4305b3a706d..d92c35fc6bb6 100644 --- a/test/xds/xds_server_certificate_providers_test.go +++ b/test/xds/xds_server_certificate_providers_test.go @@ -120,7 +120,7 @@ func (s) TestServerSideXDS_WithNoCertificateProvidersInBootstrap_Failure(t *test } select { case nackCh <- struct{}{}: - case <-ctx.Done(): + default: } return nil }, @@ -247,7 +247,7 @@ func (s) TestServerSideXDS_WithValidAndInvalidSecurityConfiguration(t *testing.T } select { case nackCh <- struct{}{}: - case <-ctx.Done(): + default: } return nil },