Skip to content

Commit ba0684c

Browse files
committed
Fix test
1 parent 3d138fa commit ba0684c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

restapi/user_service_accounts_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,13 @@ func TestListServiceAccounts(t *testing.T) {
8787
ctx, cancel := context.WithCancel(context.Background())
8888
defer cancel()
8989
mockResponse := madmin.ListServiceAccountsResp{
90-
Accounts: []string{"accesskey1", "accesskey2"},
90+
Accounts: []madmin.ServiceAccountInfo{
91+
{
92+
AccessKey: "accesskey1",
93+
}, {
94+
AccessKey: "accesskey2",
95+
},
96+
},
9197
}
9298
minioListServiceAccountsMock = func(ctx context.Context, user string) (madmin.ListServiceAccountsResp, error) {
9399
return mockResponse, nil

0 commit comments

Comments
 (0)