chore: fix tests
This commit is contained in:
parent
53c98c8bd6
commit
0fd23d0b9f
|
|
@ -93,8 +93,9 @@ async fn add_duplicate_workspace_members() {
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
// next invite should do nothing since c2 is already a workspace member
|
// next invite should return error since the user is already in the workspace
|
||||||
c1.api_client
|
let err = c1
|
||||||
|
.api_client
|
||||||
.invite_workspace_members(
|
.invite_workspace_members(
|
||||||
&workspace_id,
|
&workspace_id,
|
||||||
vec![WorkspaceMemberInvitation {
|
vec![WorkspaceMemberInvitation {
|
||||||
|
|
@ -103,7 +104,8 @@ async fn add_duplicate_workspace_members() {
|
||||||
}],
|
}],
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap_err();
|
||||||
|
assert_eq!(err.code, ErrorCode::InvalidRequest, "{:?}", err);
|
||||||
|
|
||||||
// should not find any invitation
|
// should not find any invitation
|
||||||
let invitations = c2
|
let invitations = c2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue