Skip to content

Commit cff8b38

Browse files
authored
chore(ut): fixing unit tests (#186)
1 parent daad44f commit cff8b38

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkg/utils/watchJob_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestPatchChaosEngineStatus(t *testing.T) {
4040
},
4141
Spec: v1alpha1.ChaosEngineSpec{
4242
ChaosServiceAccount: fakeServiceAcc,
43-
Appinfo: &v1alpha1.ApplicationParams{
43+
Appinfo: v1alpha1.ApplicationParams{
4444
Appns: engineDetails.EngineNamespace,
4545
Applabel: fakeAppLabel,
4646
AppKind: fakeAppKind,
@@ -65,7 +65,7 @@ func TestPatchChaosEngineStatus(t *testing.T) {
6565
},
6666
Spec: v1alpha1.ChaosEngineSpec{
6767
ChaosServiceAccount: fakeServiceAcc,
68-
Appinfo: &v1alpha1.ApplicationParams{
68+
Appinfo: v1alpha1.ApplicationParams{
6969
Appns: engineDetails.EngineNamespace,
7070
Applabel: fakeAppLabel,
7171
AppKind: fakeAppKind,
@@ -149,7 +149,7 @@ func TestUpdateEngineWithResult(t *testing.T) {
149149
},
150150
Spec: v1alpha1.ChaosEngineSpec{
151151
ChaosServiceAccount: fakeServiceAcc,
152-
Appinfo: &v1alpha1.ApplicationParams{
152+
Appinfo: v1alpha1.ApplicationParams{
153153
Appns: engineDetails.EngineNamespace,
154154
Applabel: fakeAppLabel,
155155
AppKind: fakeAppKind,
@@ -201,7 +201,7 @@ func TestUpdateEngineWithResult(t *testing.T) {
201201
},
202202
Spec: v1alpha1.ChaosEngineSpec{
203203
ChaosServiceAccount: fakeServiceAcc,
204-
Appinfo: &v1alpha1.ApplicationParams{
204+
Appinfo: v1alpha1.ApplicationParams{
205205
Appns: engineDetails.EngineNamespace,
206206
Applabel: fakeAppLabel,
207207
AppKind: fakeAppKind,

tests/runner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ var _ = Describe("BDD on chaos-runner", func() {
190190
Namespace: "litmus",
191191
},
192192
Spec: v1alpha1.ChaosEngineSpec{
193-
Appinfo: &v1alpha1.ApplicationParams{
193+
Appinfo: v1alpha1.ApplicationParams{
194194
Appns: "litmus",
195195
Applabel: "app=nginx",
196196
AppKind: "deployment",

0 commit comments

Comments
 (0)