adjusting timeouts for GHA runs and adjusting GHA runner settings

This commit is contained in:
ColemanRoo 2025-01-27 11:54:31 -06:00
parent 048aff0ee4
commit 630c87fccc
2 changed files with 7 additions and 6 deletions

View file

@ -9,8 +9,9 @@ on:
jobs:
test:
runs-on: windows-latest
runs-on: ubuntu-latest
env:
DISPLAY: :99
steps:
- uses: actions/checkout@v4
@ -30,6 +31,6 @@ jobs:
run: npm run compile
- name: Run tests
run: npm run test:extension
run: xvfb-run -a npm run test:extension

View file

@ -149,9 +149,9 @@ suite("Roo Code Extension Test Suite", () => {
test("Should handle prompt and response correctly", async function () {
// @ts-ignore
this.timeout(60000) // Increase timeout for API request
this.timeout(120000) // Increase timeout for API request
const timeout = 30000
const timeout = 60000
const interval = 1000
// Get extension instance
@ -252,7 +252,7 @@ suite("Roo Code Extension Test Suite", () => {
while (Date.now() - startTime < timeout) {
const models = await provider.readOpenRouterModels()
if (models && Object.keys(models).length > 0) {
console.log("OpenRouter models loaded")
//console.log("OpenRouter models loaded")
break
}
await new Promise((resolve) => setTimeout(resolve, interval))