Skip to content

Commit

Permalink
Rename to expected
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
  • Loading branch information
pavolloffay committed Feb 26, 2019
1 parent 9517a08 commit 98fa19d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/storage/elasticsearch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ func TestCreateElasticsearchCR(t *testing.T) {
func TestInject(t *testing.T) {
tests := []struct {
pod *v1.PodSpec
extected *v1.PodSpec
expected *v1.PodSpec
}{
{pod: &v1.PodSpec{
Containers: []v1.Container{{
Args: []string{"foo"},
VolumeMounts: []v1.VolumeMount{{Name: "lol"}},
}},
},
extected: &v1.PodSpec{
expected: &v1.PodSpec{
Containers: []v1.Container{{
Args: []string{
"foo",
Expand All @@ -129,7 +129,7 @@ func TestInject(t *testing.T) {
Args: []string{"--es.num-shards=15"},
}},
},
extected: &v1.PodSpec{
expected: &v1.PodSpec{
Containers: []v1.Container{{
Args: []string{
"--es.num-shards=15",
Expand All @@ -152,7 +152,7 @@ func TestInject(t *testing.T) {
for _, test := range tests {
es := &ElasticsearchDeployment{Jaeger: v1alpha1.NewJaeger("hoo")}
es.InjectStorageConfiguration(test.pod)
assert.Equal(t, test.extected, test.pod)
assert.Equal(t, test.expected, test.pod)
}

}
Expand Down

0 comments on commit 98fa19d

Please sign in to comment.