Skip to content

Commit

Permalink
*: fix unstable case TestIssue29282 (pingcap#33809)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcwangchao authored Apr 8, 2022
1 parent b8d65ce commit 5cd318b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ddl/db_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3757,6 +3757,13 @@ func TestIssue29282(t *testing.T) {
// Unexpected, test fail.
t.Fail()
}

// Wait the background query rollback
select {
case <-time.After(100 * time.Millisecond):
t.Fail()
case <-ch:
}
}

// See https://github.com/pingcap/tidb/issues/29327
Expand Down

0 comments on commit 5cd318b

Please sign in to comment.