File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ func TestGetVolumeSpecFromGlobalMapPath(t *testing.T) {
68
68
// Good Path
69
69
spec , err := plug .(* awsElasticBlockStorePlugin ).getVolumeSpecFromGlobalMapPath ("myVolume" , expectedGlobalPath )
70
70
if spec == nil || err != nil {
71
- t .Errorf ( "Invalid volumeMode from GlobalMapPath spec : %v - %v " , & specMode , block )
71
+ t .Fatalf ( "Failed to get spec from GlobalMapPath: %v" , err )
72
72
}
73
73
if spec .PersistentVolume .Name != "myVolume" {
74
74
t .Errorf ("Invalid PV name from GlobalMapPath spec: %s" , spec .PersistentVolume .Name )
@@ -79,7 +79,7 @@ func TestGetVolumeSpecFromGlobalMapPath(t *testing.T) {
79
79
block := v1 .PersistentVolumeBlock
80
80
specMode := spec .PersistentVolume .Spec .VolumeMode
81
81
if specMode == nil {
82
- t .Fatalf ( "Failed to get spec from GlobalMapPath: %v" , err )
82
+ t .Errorf ( "Invalid volumeMode from GlobalMapPath spec : %v - %v " , specMode , block )
83
83
}
84
84
if * specMode != block {
85
85
t .Errorf ("Invalid volumeMode from GlobalMapPath spec: %v - %v" , * specMode , block )
You can’t perform that action at this time.
0 commit comments