From 1ae177539f8944bb8b5baf521049fe0857c09aa2 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Thu, 12 Nov 2020 13:03:33 +0100 Subject: [PATCH] test: remove redundant cast The TODO was resolved earlier, the type cast is redundant now. --- test/e2e/deploy/deploy.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/e2e/deploy/deploy.go b/test/e2e/deploy/deploy.go index ceb83aaa8d..62ba98c1aa 100644 --- a/test/e2e/deploy/deploy.go +++ b/test/e2e/deploy/deploy.go @@ -927,9 +927,7 @@ func (d *Deployment) GetDriverDeployment() api.Deployment { Labels: map[string]string{ deploymentLabel: d.Label(), }, - // TODO: replace pmemcsidriver.DeviceMode with api.DeviceMode everywhere - // and remove this cast here. - DeviceMode: api.DeviceMode(d.Mode), + DeviceMode: d.Mode, // As in setup-deployment.sh, only 50% of the available // PMEM must be used for LVM, otherwise other tests cannot // run after the LVM driver was deployed once.