Proper f() wrapper for taint test.

This commit is contained in:
Jan Mußler 2020-10-27 14:14:30 +01:00
parent 826d7c0c1e
commit 326c67b670
1 changed files with 2 additions and 2 deletions

View File

@ -709,8 +709,8 @@ class EndToEndTestCase(unittest.TestCase):
}
k8s.api.core_v1.patch_node(master_nodes[0], body)
self.eventuallyTrue(k8s.get_cluster_nodes()[0], replica_nodes)
self.assertNotEqual(k8s.get_cluster_nodes()[0], master_nodes)
self.eventuallyTrue(lambda: k8s.get_cluster_nodes()[0], replica_nodes)
self.assertNotEqual(lambda: k8s.get_cluster_nodes()[0], master_nodes)
# add toleration to pods
patch_toleration_config = {