mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Code review changes
This commit is contained in:
parent
903b98d2bf
commit
c41932e919
@ -68,7 +68,7 @@ func TestGetVolumeSpecFromGlobalMapPath(t *testing.T) {
|
|||||||
// Good Path
|
// Good Path
|
||||||
spec, err := plug.(*awsElasticBlockStorePlugin).getVolumeSpecFromGlobalMapPath("myVolume", expectedGlobalPath)
|
spec, err := plug.(*awsElasticBlockStorePlugin).getVolumeSpecFromGlobalMapPath("myVolume", expectedGlobalPath)
|
||||||
if spec == nil || err != nil {
|
if spec == nil || err != nil {
|
||||||
t.Fatalf("Failed to get spec from GlobalMapPath: %v", err)
|
t.Errorf("Invalid volumeMode from GlobalMapPath spec: %v - %v", &specMode, block)
|
||||||
}
|
}
|
||||||
if spec.PersistentVolume.Name != "myVolume" {
|
if spec.PersistentVolume.Name != "myVolume" {
|
||||||
t.Errorf("Invalid PV name from GlobalMapPath spec: %s", spec.PersistentVolume.Name)
|
t.Errorf("Invalid PV name from GlobalMapPath spec: %s", spec.PersistentVolume.Name)
|
||||||
|
Loading…
Reference in New Issue
Block a user