Merge pull request #4852 from khanhtc1202/fix-test

Remove print in test
This commit is contained in:
karmada-bot 2024-04-20 17:21:58 +08:00 committed by GitHub
commit f3b943d23d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions

View File

@ -17,7 +17,6 @@ limitations under the License.
package helper
import (
"fmt"
"reflect"
"testing"
"time"
@ -541,7 +540,6 @@ func TestGetMinTolerationTime(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
result := GetMinTolerationTime(tt.noExecuteTaints, tt.usedTolerantion)
fmt.Printf("%+v", result)
if result > 0 {
if result > (tt.wantResult+1)*time.Second || result < (tt.wantResult-1)*time.Second {
t.Errorf("GetMinTolerationTime() = %v, want %v", result, tt.wantResult)