mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
commit
e77e8ffbf5
@ -524,7 +524,7 @@ func TestSimpleDaemonSetScheduleDaemonSetPodsLaunchesPods(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(nodeSelector.NodeSelectorTerms[0].MatchFields) != 1 {
|
if len(nodeSelector.NodeSelectorTerms[0].MatchFields) != 1 {
|
||||||
t.Fatalf("incorrect number of fields in in node selector term for pod %s, expected: 1, got: %d.",
|
t.Fatalf("incorrect number of fields in node selector term for pod %s, expected: 1, got: %d.",
|
||||||
pod.Name, len(nodeSelector.NodeSelectorTerms[0].MatchFields))
|
pod.Name, len(nodeSelector.NodeSelectorTerms[0].MatchFields))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1166,7 +1166,7 @@ func (t *Tester) testDeleteGracefulShorten(obj runtime.Object, createFn CreateFu
|
|||||||
// testGetDifferentNamespace ensures same-name objects in different namespaces do not clash
|
// testGetDifferentNamespace ensures same-name objects in different namespaces do not clash
|
||||||
func (t *Tester) testGetDifferentNamespace(obj runtime.Object) {
|
func (t *Tester) testGetDifferentNamespace(obj runtime.Object) {
|
||||||
if t.clusterScope {
|
if t.clusterScope {
|
||||||
t.Fatalf("the test does not work in in cluster-scope")
|
t.Fatalf("the test does not work in cluster-scope")
|
||||||
}
|
}
|
||||||
|
|
||||||
objMeta := t.getObjectMetaOrFail(obj)
|
objMeta := t.getObjectMetaOrFail(obj)
|
||||||
|
Loading…
Reference in New Issue
Block a user