Skip to content

Commit

Permalink
Fixing lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
adamantal committed Feb 18, 2021
1 parent d2f734d commit 621c433
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions controllers/tests/kafkacluster_controller_kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ func expectKafkaBrokerPod(kafkaCluster *v1beta1.KafkaCluster, broker v1beta1.Bro
))
Expect(container.VolumeMounts).To(HaveLen(8))
Expect(container.VolumeMounts[0]).To(Equal(corev1.VolumeMount{
Name: "a-test-volume",
MountPath: "/a/test/path",
Name: "a-test-volume",
MountPath: "/a/test/path",
}))
Expect(container.VolumeMounts[1]).To(Equal(corev1.VolumeMount{
Name: "broker-config",
Expand Down Expand Up @@ -310,7 +310,6 @@ func expectKafkaBrokerPod(kafkaCluster *v1beta1.KafkaCluster, broker v1beta1.Bro
MountPath: "/test/path",
}))


// test exact order, because if the slice reorders, it triggers another reconcile cycle
Expect(pod.Spec.Volumes).To(HaveLen(8))
Expect(pod.Spec.Volumes[0]).To(Equal(
Expand Down

0 comments on commit 621c433

Please sign in to comment.