Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: ryjiang <[email protected]>
  • Loading branch information
shanghaikid committed Sep 3, 2024
1 parent f07f0e6 commit b7d1b66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions test/grpc/User.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ describe(`User Api`, () => {
password: PASSWORD,
});
const res = await authClient.listUsers();
expect(res.usernames).toEqual(['root', USERNAME]);
expect(res.usernames).toContain(USERNAME);
expect(res.usernames).toContain('root');
expect(res.usernames.length).toEqual(2);
});

it(`Auth client with token expect success`, async () => {
Expand All @@ -86,7 +88,9 @@ describe(`User Api`, () => {
token: `${USERNAME}:${PASSWORD}`,
});
const res = await authClient.listUsers();
expect(res.usernames).toEqual(['root', USERNAME]);
expect(res.usernames).toContain(USERNAME);
expect(res.usernames).toContain('root');
expect(res.usernames.length).toEqual(2);
});

it(`Clean all role privileges`, async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/tools/ip.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// test IP
export const IP = '127.0.0.1:19530';
export const IP = '10.102.7.11:19530';
export const ENDPOINT = `http://${IP}`;

0 comments on commit b7d1b66

Please sign in to comment.