From 09ebfc25fd1d35c5ebcf79cbc08a2ec975fcd57e Mon Sep 17 00:00:00 2001 From: mlmhl Date: Thu, 8 Feb 2018 14:39:07 +0800 Subject: [PATCH] remove duplicated code in aws ebs unit test --- pkg/volume/aws_ebs/aws_ebs_test.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/volume/aws_ebs/aws_ebs_test.go b/pkg/volume/aws_ebs/aws_ebs_test.go index 9611cec387..95d81c049e 100644 --- a/pkg/volume/aws_ebs/aws_ebs_test.go +++ b/pkg/volume/aws_ebs/aws_ebs_test.go @@ -145,13 +145,6 @@ func TestPlugin(t *testing.T) { t.Errorf("SetUp() failed: %v", err) } } - if _, err := os.Stat(path); err != nil { - if os.IsNotExist(err) { - t.Errorf("SetUp() failed, volume path not created: %s", path) - } else { - t.Errorf("SetUp() failed: %v", err) - } - } fakeManager = &fakePDManager{} unmounter, err := plug.(*awsElasticBlockStorePlugin).newUnmounterInternal("vol1", types.UID("poduid"), fakeManager, fakeMounter)