Skip to content

Commit

Permalink
test: fix flaky case (#50525)
Browse files Browse the repository at this point in the history
close #50524
  • Loading branch information
D3Hunter authored Jan 18, 2024
1 parent c92094f commit 549a5d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/disttask/framework/framework_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestRandomOwnerChangeWithMultipleTasks(t *testing.T) {
distContext.SetOwner(idx)
require.Eventually(t, func() bool {
return distContext.GetDomain(idx).DDL().OwnerManager().IsOwner()
}, 2*time.Second, 100*time.Millisecond)
}, 10*time.Second, 100*time.Millisecond)
}
})
wg.Wait()
Expand Down Expand Up @@ -107,7 +107,7 @@ func TestFrameworkScaleInAndOut(t *testing.T) {
distContext.SetOwner(idx)
require.Eventually(t, func() bool {
return distContext.GetDomain(idx).DDL().OwnerManager().IsOwner()
}, 2*time.Second, 100*time.Millisecond)
}, 10*time.Second, 100*time.Millisecond)
}
})
wg.Wait()
Expand Down

0 comments on commit 549a5d9

Please sign in to comment.