diff --git a/src/connection/SCVersion.ts b/src/connection/SCVersion.ts index afa4a9bf..cbff24bd 100644 --- a/src/connection/SCVersion.ts +++ b/src/connection/SCVersion.ts @@ -1,3 +1,3 @@ -export const SERVER_VERSION_TAG = `v1.4.5`; -export const SERVER_VERSION_FILE = `codeforiserver-1.4.5.jar`; \ No newline at end of file +export const SERVER_VERSION_TAG = `v1.4.6`; +export const SERVER_VERSION_FILE = `codeforiserver-1.4.6.jar`; \ No newline at end of file diff --git a/src/testing/jobs.ts b/src/testing/jobs.ts index e4c4d0c6..8d463a7b 100644 --- a/src/testing/jobs.ts +++ b/src/testing/jobs.ts @@ -418,5 +418,25 @@ export const JobsSuite: TestSuite = { console.log(`Old query method took ${oe - os} milliseconds.`); assert.equal((ne - ns) < (oe - os), true); }}, + {name: `(long-running) Server-side in-memory tracing doesn't overflow`, test: async () => { + assert.strictEqual(ServerComponent.isInstalled(), true); + + const instance = getInstance(); + const content = instance.getContent(); + + const newJob = new SQLJob({naming: `sql`}); + await newJob.connect(); + await newJob.setTraceConfig(ServerTraceDest.IN_MEM, ServerTraceLevel.DATASTREAM); + + let numIterations = 1000; + for (let i = 0; i < numIterations; i++) { + let version = await newJob.getVersion(); + if(0 == i%20) { + console.log(`long-running test interation ${i}/${numIterations}`); + } + } + let bruh = await newJob.getTraceData(); + newJob.close(); + }}, ] } \ No newline at end of file