add timeout to long running tests
This commit is contained in:
parent
e92b7274c9
commit
ac648af78e
@ -74,9 +74,9 @@ vi.mock("./ModelSelect/ModelSelect", () => {
|
||||
if (onChange) {
|
||||
const newVal = e.target.value
|
||||
? e.target.value
|
||||
.split(",")
|
||||
.map((s: string) => s.trim())
|
||||
.filter(Boolean)
|
||||
.split(",")
|
||||
.map((s: string) => s.trim())
|
||||
.filter(Boolean)
|
||||
: [];
|
||||
onChange(newVal);
|
||||
}
|
||||
@ -836,7 +836,7 @@ describe("OldTeams - access_group_ids in team create", () => {
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
}, { timeout: 30000 });
|
||||
});
|
||||
|
||||
describe("OldTeams - models dropdown options", () => {
|
||||
|
||||
@ -118,7 +118,7 @@ describe("CreateKey", () => {
|
||||
expect(formValues).toHaveProperty("access_group_ids");
|
||||
expect(formValues.access_group_ids).toEqual(["ag-1", "ag-2"]);
|
||||
},
|
||||
{ timeout: 5000 },
|
||||
{ timeout: 15000 },
|
||||
);
|
||||
});
|
||||
}, { timeout: 30000 });
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user