Skip to content

Commit

Permalink
fix client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam-Nawara committed Dec 26, 2024
1 parent a4a322d commit 200b200
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grid-client/state/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ func SetupLoaderTests(t *testing.T, wls []zosTypes.Workload) *State {
Return(client.NewNodeClient(13, cl, 10), nil).AnyTimes()

cl.EXPECT().
Call(gomock.Any(), uint32(13), "zos.deployment.get", gomock.Any(), gomock.Any()).
Call(gomock.Any(), uint32(13), "zos.deployment.list", gomock.Any(), gomock.Any()).
DoAndReturn(func(ctx context.Context, twin uint32, fn string, data, result interface{}) error {
var res *zosTypes.Deployment = result.(*zosTypes.Deployment)
var res *[]zosTypes.Deployment = result.(*[]zosTypes.Deployment)
dl1.Metadata = "{\"type\":\"\",\"name\":\"testName\",\"projectName\":\"\"}"
*res = dl1
*res = []zosTypes.Deployment{dl1}
return nil
}).AnyTimes()

Expand Down

0 comments on commit 200b200

Please # to comment.