mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
codeClean-merge-logfAndFailnow-to-fatalf
This commit is contained in:
parent
7595560a0c
commit
af6b4e39c2
@ -339,11 +339,9 @@ func TestNodeAllocatableInputValidation(t *testing.T) {
|
||||
}
|
||||
err := cm.validateNodeAllocatable()
|
||||
if err == nil && tc.invalidConfiguration {
|
||||
t.Logf("Expected invalid node allocatable configuration")
|
||||
t.FailNow()
|
||||
t.Fatalf("Expected invalid node allocatable configuration")
|
||||
} else if err != nil && !tc.invalidConfiguration {
|
||||
t.Logf("Expected valid node allocatable configuration: %v", err)
|
||||
t.FailNow()
|
||||
t.Fatalf("Expected valid node allocatable configuration: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
@ -386,11 +384,9 @@ func TestNodeAllocatableInputValidation(t *testing.T) {
|
||||
}
|
||||
err := cm.validateNodeAllocatable()
|
||||
if err == nil && tc.invalidConfiguration {
|
||||
t.Logf("Expected invalid node allocatable configuration")
|
||||
t.FailNow()
|
||||
t.Fatalf("Expected invalid node allocatable configuration")
|
||||
} else if err != nil && !tc.invalidConfiguration {
|
||||
t.Logf("Expected valid node allocatable configuration: %v", err)
|
||||
t.FailNow()
|
||||
t.Fatalf("Expected valid node allocatable configuration: %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user