Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Fixed unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Prafulla Mahindrakar <[email protected]>
  • Loading branch information
pmahindrakar-oss committed Apr 18, 2021
1 parent 7d28004 commit 74f6ec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/update/project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func TestActivateProjectFuncWithError(t *testing.T) {
modifyProjectFlags(&(projectConfig.ArchiveProject), false, &(projectConfig.ActivateProject), true)
mockClient.OnUpdateProjectMatch(ctx, projectUpdateRequest).Return(nil, errors.New("Error Updating Project"))
err := updateProjectsFunc(ctx, args, cmdCtx)
assert.Nil(t, err)
assert.NotNil(t, err)
mockClient.AssertCalled(t, "UpdateProject", ctx, projectUpdateRequest)
}

Expand Down Expand Up @@ -112,7 +112,7 @@ func TestArchiveProjectFuncWithError(t *testing.T) {
}
mockClient.OnUpdateProjectMatch(ctx, projectUpdateRequest).Return(nil, errors.New("Error Updating Project"))
err := updateProjectsFunc(ctx, args, cmdCtx)
assert.Nil(t, err)
assert.NotNil(t, err)
mockClient.AssertCalled(t, "UpdateProject", ctx, projectUpdateRequest)
}

Expand Down

0 comments on commit 74f6ec8

Please sign in to comment.