This is an automated email from the ASF dual-hosted git repository.
zhuqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-core.git
The following commit(s) were added to refs/heads/master by this push:
new dc71c150 [YUNIKORN-1811] Flaky tests TestPlaceholderSmallerThanReal
and TestPlaceholderSmallerMulti (#565)
dc71c150 is described below
commit dc71c15018724e961254b63498f1e651a1f017a3
Author: Peter Bacsko <[email protected]>
AuthorDate: Tue Jun 13 17:33:03 2023 +0800
[YUNIKORN-1811] Flaky tests TestPlaceholderSmallerThanReal and
TestPlaceholderSmallerMulti (#565)
Closes: #565
Signed-off-by: qzhu <[email protected]>
---
pkg/scheduler/partition_test.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkg/scheduler/partition_test.go b/pkg/scheduler/partition_test.go
index ada485be..d9ab2d6a 100644
--- a/pkg/scheduler/partition_test.go
+++ b/pkg/scheduler/partition_test.go
@@ -2552,7 +2552,7 @@ func TestPlaceholderSmallerThanReal(t *testing.T) {
assertUserGroupResource(t, getTestUserGroup(), phRes)
// wait for events to be processed
- err = common.WaitFor(1*time.Millisecond, 10*time.Millisecond, func()
bool {
+ err = common.WaitFor(10*time.Millisecond, time.Second, func() bool {
return eventSystem.Store.CountStoredEvents() == 1
})
assert.NilError(t, err, "the event should have been processed")
@@ -2638,7 +2638,7 @@ func TestPlaceholderSmallerMulti(t *testing.T) {
}
// wait for events to be processed
- err = common.WaitFor(1*time.Millisecond, 10*time.Millisecond, func()
bool {
+ err = common.WaitFor(10*time.Millisecond, time.Second, func() bool {
fmt.Printf("checking event length: %d\n",
eventSystem.Store.CountStoredEvents())
return eventSystem.Store.CountStoredEvents() == phCount
})
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]