testdriverai 7.8.0-test.69 → 7.8.0-test.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/agent/lib/sandbox.js
CHANGED
|
@@ -733,7 +733,7 @@ const createSandbox = function (emitter, analytics, sessionInstance) {
|
|
|
733
733
|
var self = this;
|
|
734
734
|
if (reply.agent && this._sessionChannel) {
|
|
735
735
|
logger.log('Waiting for runner agent to signal readiness (direct connection)...');
|
|
736
|
-
var readyTimeout =
|
|
736
|
+
var readyTimeout = 60000 * 5;
|
|
737
737
|
await new Promise(function (resolve, reject) {
|
|
738
738
|
var resolved = false;
|
|
739
739
|
var waitStart = Date.now();
|
|
@@ -1294,7 +1294,8 @@ const createSandbox = function (emitter, analytics, sessionInstance) {
|
|
|
1294
1294
|
"Write-Host '=== Done ==='",
|
|
1295
1295
|
],
|
|
1296
1296
|
});
|
|
1297
|
-
const
|
|
1297
|
+
const { randomUUID } = require('crypto');
|
|
1298
|
+
const tmpFile = join(tmpdir(), 'td-provision-' + randomUUID() + '.json');
|
|
1298
1299
|
writeFileSync(tmpFile, paramsJson);
|
|
1299
1300
|
|
|
1300
1301
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
2
|
import { TestDriver } from "../lib/vitest/hooks.mjs";
|
|
3
|
-
import { getDefaults } from "
|
|
3
|
+
import { getDefaults } from "../examples/config.mjs";
|
|
4
4
|
|
|
5
5
|
describe("Exec Log Streaming", () => {
|
|
6
6
|
it("should stream exec logs every second for 20 seconds", async (context) => {
|