Skip to content

Commit

Permalink
test: remove sleep and add pollinterval
Browse files Browse the repository at this point in the history
Signed-off-by: Vibhu Prashar <[email protected]>
  • Loading branch information
vprashar2929 committed Oct 18, 2023
1 parent 30adaff commit 2816dbf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: pr-checks

on:
pull_request:
push:
branches:
- package

jobs:
docs:
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/test/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (f Framework) WaitUntilKeplerCondition(name string, t v1alpha1.ConditionTyp

condition, _ := k8s.FindCondition(k.Status.Conditions, t)
return condition.Status == v1alpha1.ConditionTrue, nil
})
}, PollInterval(1*time.Minute))
return &k
}

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/kepler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func TestTaint_WithToleration(t *testing.T) {
ds := appsv1.DaemonSet{}
f.AssertResourceExists(exporter.DaemonSetName, components.Namespace, &ds)

time.Sleep(2 * time.Minute)
// time.Sleep(2 * time.Minute)
kepler := f.WaitUntilKeplerCondition("kepler", v1alpha1.Available)
assert.EqualValues(t, len(nodes), kepler.Status.NumberAvailable)

Expand Down

0 comments on commit 2816dbf

Please sign in to comment.