owner: fix TestSingle (#13427)

This commit is contained in:
wjHuang
2019-11-19 13:04:53 +08:00
committed by pingcap-github-bot
parent e8cd6a63ac
commit 087d2bd7fa

View File

@ -90,7 +90,7 @@ func TestSingle(t *testing.T) {
if isOwner {
t.Fatalf("expect false, got isOwner:%v", isOwner)
}
time.Sleep(10 * time.Millisecond)
time.Sleep(200 * time.Millisecond)
ownerID, _ := manager.GetOwnerID(goctx.Background())
// The error is ok to be not nil since we canceled the manager.
if ownerID != "" {