From 00abe6d50552b4cea7367ce888a86fc7448a302d Mon Sep 17 00:00:00 2001 From: Kenichi Omichi Date: Tue, 31 Dec 2019 00:14:03 +0000 Subject: [PATCH] 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. --- test/integration/scheduler/preemption_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration/scheduler/preemption_test.go b/test/integration/scheduler/preemption_test.go index 677f7e3350f..68a9df8981c 100644 --- a/test/integration/scheduler/preemption_test.go +++ b/test/integration/scheduler/preemption_test.go @@ -392,6 +392,7 @@ func TestPreemption(t *testing.T) { } for _, test := range tests { + t.Logf("================ Running test: %v\n", test.description) filter.Tokens = test.initTokens filter.Unresolvable = test.unresolvable pods := make([]*v1.Pod, len(test.existingPods)) @@ -583,6 +584,7 @@ func TestPodPriorityResolution(t *testing.T) { pods := make([]*v1.Pod, 0, len(tests)) for _, test := range tests { + t.Logf("================ Running test: %v\n", test.Name) t.Run(test.Name, func(t *testing.T) { pod, err := runPausePod(cs, test.Pod) if err != nil {