Skip to content

Commit 2d1c24f

Browse files
authored
Merge pull request #310 from Revolyssup/fixingpanicduringtest
2 parents d0620f2 + 345b258 commit 2d1c24f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

istio/istio_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,7 @@ func TestIstio_ApplyOperation(t *testing.T) {
386386
}
387387
for _, tt := range tests {
388388
t.Run(tt.name, func(t *testing.T) {
389-
istio := &Istio{
390-
Adapter: tt.fields.Adapter,
391-
}
392-
if err := istio.ApplyOperation(tt.args.ctx, tt.args.opReq); (err != nil) != tt.wantErr {
389+
if err := tt.fields.Adapter.ApplyOperation(tt.args.ctx, tt.args.opReq); (err != nil) != tt.wantErr {
393390
t.Errorf("Istio.ApplyOperation() error = %v, wantErr %v", err, tt.wantErr)
394391
}
395392
})

0 commit comments

Comments
 (0)