Skip to content

Commit

Permalink
executor: Make admin test stable (pingcap#2940)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala authored Mar 28, 2017
1 parent c83bdda commit 99b7606
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion executor/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ func (s *testSuite) TestAdmin(c *C) {
rowOwnerInfos = strings.Split(row.Data[4].GetString(), ",")
ownerInfos = strings.Split(bgInfo.Owner.String(), ",")
c.Assert(rowOwnerInfos[0], Equals, ownerInfos[0])
c.Assert(row.Data[5].GetString(), Equals, "")
row, err = r.Next()
c.Assert(err, IsNil)
c.Assert(row, IsNil)
Expand Down
6 changes: 3 additions & 3 deletions meta/autoid/autoid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ func (*testSuite) TestConcurrentAlloc(c *C) {
allocIDs := func() {
alloc := NewAllocator(store, dbID)
for j := 0; j < int(step)+5; j++ {
id, err := alloc.Alloc(tblID)
if err != nil {
errCh <- err
id, err1 := alloc.Alloc(tblID)
if err1 != nil {
errCh <- err1
break
}

Expand Down

0 comments on commit 99b7606

Please sign in to comment.