Fix gRPC flaky test (#6900)

* Fix gRPC flaky test

* Fix non-determinism

* Revert waitforheightwithtimeout

* Don't use NotNil

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
Amaury Martiny 2020-07-30 18:31:29 +02:00 committed by GitHub
parent e15d0322dc
commit eb08781e8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func (s *IntegrationTestSuite) TestGRPC() {
*bankRes.GetBalance(), *bankRes.GetBalance(),
) )
blockHeight := header.Get(servergrpc.GRPCBlockHeightHeader) blockHeight := header.Get(servergrpc.GRPCBlockHeightHeader)
s.Require().Equal([]string{"2"}, blockHeight) s.Require().NotEqual("", blockHeight[0]) // Should contain the block height
// Request metadata should work // Request metadata should work
bankRes, err = bankClient.Balance( bankRes, err = bankClient.Balance(