Skip to content

Commit

Permalink
Ensure we push atmost once to the nackCh
Browse files Browse the repository at this point in the history
  • Loading branch information
arjan-bal committed Jul 16, 2024
1 parent bdd707e commit 7360d9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/xds/xds_server_certificate_providers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (s) TestServerSideXDS_WithNoCertificateProvidersInBootstrap_Failure(t *test
}
select {
case nackCh <- struct{}{}:
case <-ctx.Done():
default:
}
return nil
},
Expand Down Expand Up @@ -247,7 +247,7 @@ func (s) TestServerSideXDS_WithValidAndInvalidSecurityConfiguration(t *testing.T
}
select {
case nackCh <- struct{}{}:
case <-ctx.Done():
default:
}
return nil
},
Expand Down

0 comments on commit 7360d9c

Please sign in to comment.