Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasAlaif committed Feb 14, 2024
1 parent 6debc46 commit ba05085
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/src/test/2_stress.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import assert from 'assert';
import TestHelper, { CARBON_NAME, SETUP_TIMEOUT, SILICON_NAME, SIMPLE } from './TestHelper';
import { Log } from '../Log';

suite('ViperIDE Stress Tests', () => {

Expand Down Expand Up @@ -35,15 +36,22 @@ suite('ViperIDE Stress Tests', () => {

await TestHelper.selectBackend(CARBON_NAME);
await TestHelper.openFile(SIMPLE);
Log.error(`[DBG] Opened file`);
//submit 10 verification requests
for (let i = 0; i < 10; i++) {
Log.error(`[DBG] Got to A ${i} times`);
await TestHelper.selectBackend(SILICON_NAME);
Log.error(`[DBG] Got to B ${i} times`);
await TestHelper.selectBackend(CARBON_NAME);
}
Log.error(`[DBG] Got to D`);

await TestHelper.wait(500);
Log.error(`[DBG] Got to E`);
await TestHelper.selectBackend(SILICON_NAME);
Log.error(`[DBG] Got to F`);
await TestHelper.waitForVerification(SIMPLE, SILICON_NAME);
Log.error(`[DBG] Got to G`);
assert(!TestHelper.hasObservedInternalError());
});

Expand Down

0 comments on commit ba05085

Please sign in to comment.