Skip to content

Commit 2d6c9dc

Browse files
committed
fix unit test
1 parent f05c968 commit 2d6c9dc

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

percona/pmm/pmm_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"github.com/pkg/errors"
77
"github.com/stretchr/testify/assert"
88
"github.com/stretchr/testify/require"
9-
109
corev1 "k8s.io/api/core/v1"
1110
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1211

@@ -136,7 +135,6 @@ func TestContainer(t *testing.T) {
136135
assert.Contains(t, container.Env, tt.verificationEnvVar())
137136
})
138137
}
139-
140138
}
141139

142140
func TestSidecarContainerV2(t *testing.T) {
@@ -248,7 +246,7 @@ func TestSidecarContainerV2(t *testing.T) {
248246
}
249247
}
250248

251-
assert.Len(t, container.VolumeMounts, 1)
249+
assert.Len(t, container.VolumeMounts, 2)
252250
assert.Equal(t, "/pgconf/tls", container.VolumeMounts[0].MountPath)
253251
assert.True(t, container.VolumeMounts[0].ReadOnly)
254252
}
@@ -357,7 +355,7 @@ func TestSidecarContainerV3(t *testing.T) {
357355
}
358356
}
359357

360-
assert.Len(t, container.VolumeMounts, 1)
358+
assert.Len(t, container.VolumeMounts, 2)
361359
assert.Equal(t, "/pgconf/tls", container.VolumeMounts[0].MountPath)
362360
assert.True(t, container.VolumeMounts[0].ReadOnly)
363361
}

0 commit comments

Comments
 (0)