Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Tingaikin <[email protected]>
  • Loading branch information
NSMBot authored and denis-tingaikin committed Jan 12, 2021
1 parent 1842715 commit 2468037
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ func (t *RegistryTestSuite) TestNetworkServiceEndpointRegistration() {

t.Nil(err)
t.NotEmpty(result.Name)
stream, err := client.Find(context.Background(), &registry.NetworkServiceEndpointQuery{NetworkServiceEndpoint: result})
stream, err := client.Find(context.Background(), &registry.NetworkServiceEndpointQuery{NetworkServiceEndpoint: &registry.NetworkServiceEndpoint{
Name: result.Name,
}})
t.Nil(err)
list := registry.ReadNetworkServiceEndpointList(stream)
t.Len(list, 1)
Expand Down Expand Up @@ -245,7 +247,8 @@ func (t *RegistryTestSuite) TestNetworkServiceEndpointRegistrationExpiration() {
t.Nil(err)
list = registry.ReadNetworkServiceEndpointList(stream)
return len(list) == 0
}, time.Second*5, time.Millisecond*100)
}, time.Until(result.GetExpirationTime().AsTime())+time.Second*5, time.Millisecond*100)

}

func (t *RegistryTestSuite) TestNetworkServiceEndpointClientRefreshingTime() {
Expand Down

0 comments on commit 2468037

Please sign in to comment.