e2e_node: stop using deprecated framework.ExpectEqual

This commit is contained in:
carlory
2023-10-09 16:42:42 +08:00
parent cdc026fad1
commit d5d7fb595e
17 changed files with 91 additions and 73 deletions

View File

@@ -103,11 +103,9 @@ var _ = SIGDescribe("Checkpoint Container [NodeFeature:CheckpointContainer]", fu
framework.ExpectNoError(err)
isReady, err := testutils.PodRunningReady(p)
framework.ExpectNoError(err)
framework.ExpectEqual(
isReady,
true,
"pod should be ready",
)
if !isReady {
framework.Failf("pod %q should be ready", p.Name)
}
framework.Logf(
"About to checkpoint container %q on %q",
@@ -199,7 +197,9 @@ var _ = SIGDescribe("Checkpoint Container [NodeFeature:CheckpointContainer]", fu
}
}
for fileName := range checkForFiles {
framework.ExpectEqual(checkForFiles[fileName], true)
if !checkForFiles[fileName] {
framework.Failf("File %q not found in checkpoint archive %q", fileName, item)
}
}
// cleanup checkpoint archive
os.RemoveAll(item)