Skip to content

Commit

Permalink
Add missing before callback to mem.spec.ts (eclipse-cdt-cloud#68)
Browse files Browse the repository at this point in the history
before(standardBefore) is missing, which means the test will not work if
the test programs are not already built.

Signed-off-by: Simon Marchi <[email protected]>
  • Loading branch information
simark authored and dschaefer committed Jan 16, 2019
1 parent 31a23ef commit deda840
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/integration-tests/mem.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as path from 'path';
import { DebugClient } from 'vscode-debugadapter-testsupport';
import { DebugProtocol } from 'vscode-debugprotocol/lib/debugProtocol';
import { MemoryResponse } from '../GDBDebugSession';
import { expectRejection, standardBeforeEach, testProgramsDir } from './utils';
import { expectRejection, standardBeforeEach, testProgramsDir, standardBefore } from './utils';

// Allow non-arrow functions: https://mochajs.org/#arrow-functions
// tslint:disable:only-arrow-functions
Expand All @@ -23,6 +23,8 @@ let scope: DebugProtocol.Scope;
const memProgram = path.join(testProgramsDir, 'mem');
const memSrc = path.join(testProgramsDir, 'mem.c');

before(standardBefore);

beforeEach(async function() {
dc = await standardBeforeEach();

Expand Down

0 comments on commit deda840

Please sign in to comment.