mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
e2e: pass context.TODO()
to k8s.e2e functions
Many Kubernetes test framework functions now require a context to be passed. Use `context.TODO()` for this, just like is done for some of the functions already. Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
committed by
mergify[bot]
parent
92d9785166
commit
e6627198d4
@ -355,7 +355,7 @@ var _ = Describe("RBD", func() {
|
||||
logsCSIPods("app=csi-rbdplugin", c)
|
||||
|
||||
// log all details from the namespace where Ceph-CSI is deployed
|
||||
e2edebug.DumpAllNamespaceInfo(c, cephCSINamespace)
|
||||
e2edebug.DumpAllNamespaceInfo(context.TODO(), c, cephCSINamespace)
|
||||
}
|
||||
|
||||
err := deleteConfigMap(rbdDirPath)
|
||||
@ -596,7 +596,7 @@ var _ = Describe("RBD", func() {
|
||||
validateRBDImageCount(f, 1, defaultRBDPool)
|
||||
validateOmapCount(f, 1, rbdType, defaultRBDPool, volumesType)
|
||||
// create namespace for reattach PVC, deletion will be taken care by framework
|
||||
ns, err := f.CreateNamespace(reattachPVCNamespace, nil)
|
||||
ns, err := f.CreateNamespace(context.TODO(), reattachPVCNamespace, nil)
|
||||
if err != nil {
|
||||
framework.Failf("failed to create namespace: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user