Skip to content

Commit 00abe6d

Browse files
author
Kenichi Omichi
committed
Output test description in TestPreemption
Now we are facing flake test of TestPreemption due to less available node. TestPreemption consists of multiple test cases and the resource is shared in them. At this time, we cannot see what test cases run before the flake happens. So it is better to know that to distinguish the cleanup of pods is not completed or not.
1 parent a1364be commit 00abe6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/integration/scheduler/preemption_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ func TestPreemption(t *testing.T) {
392392
}
393393

394394
for _, test := range tests {
395+
t.Logf("================ Running test: %v\n", test.description)
395396
filter.Tokens = test.initTokens
396397
filter.Unresolvable = test.unresolvable
397398
pods := make([]*v1.Pod, len(test.existingPods))
@@ -583,6 +584,7 @@ func TestPodPriorityResolution(t *testing.T) {
583584

584585
pods := make([]*v1.Pod, 0, len(tests))
585586
for _, test := range tests {
587+
t.Logf("================ Running test: %v\n", test.Name)
586588
t.Run(test.Name, func(t *testing.T) {
587589
pod, err := runPausePod(cs, test.Pod)
588590
if err != nil {

0 commit comments

Comments
 (0)