Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <nolouch@gmail.com>
  • Loading branch information
nolouch committed Apr 15, 2019
1 parent 65013dc commit 0ae6724
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,9 @@ func (s *testClientSuite) TestGetStore(c *C) {

// Should not return tombstone stores.
stores, err = s.client.GetAllStores(context.Background(), WithExcludeTombstone())
c.Assert(err, IsNil)
for _, store := range stores {
if store.GetId() == tombstoneStore.GetId() {
c.Assert(store, Not(Equals), tombstoneStore)
}
c.Assert(store, Not(Equals), tombstoneStore)
}
}

Expand Down Expand Up @@ -402,7 +401,6 @@ func (s *testClientSuite) TestScatterRegion(c *C) {
if c.Check(err, NotNil) {
return false
}
// no operator will create cause of the store number is 1.
resp, err := s.client.GetOperator(context.Background(), regionID)
if c.Check(err, NotNil) {
return false
Expand Down

0 comments on commit 0ae6724

Please sign in to comment.