Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-inf committed Aug 26, 2024
1 parent 59a0d2b commit a0aad1a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/controller/component/kbagent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package component

import (
"fmt"
"reflect"
"time"

. "github.com/onsi/ginkgo/v2"
Expand Down Expand Up @@ -151,7 +152,7 @@ var _ = Describe("kb-agent", func() {
Expect(c.Env).Should(HaveLen(2))
})

PIt("action env", func() {
It("action env", func() {
env := []corev1.EnvVar{
{
Name: "NOW",
Expand All @@ -174,8 +175,8 @@ var _ = Describe("kb-agent", func() {
c := kbAgentContainer()
Expect(c).ShouldNot(BeNil())
Expect(c.Env).Should(HaveLen(4))
Expect(c.Env[0]).Should(Equal(env[0]))
Expect(c.Env[1]).Should(Equal(env[2]))
Expect(reflect.DeepEqual(c.Env[0], env[0])).Should(BeTrue())
Expect(reflect.DeepEqual(c.Env[1], env[1])).Should(BeTrue())
})

It("custom image", func() {
Expand Down

0 comments on commit a0aad1a

Please sign in to comment.