提交 e1fb6c4d 编写于 作者: B Benjamin Pasero

move timeout into test

上级 5b657a53
......@@ -24,8 +24,6 @@ suite('FileService', () => {
let parentDir = path.join(os.tmpdir(), 'vsctests', 'service');
let testDir: string;
this.timeout(10000); // some tests tend to need longer?
setup(function (done) {
let id = uuid.generateUuid();
testDir = path.join(parentDir, id);
......@@ -59,6 +57,8 @@ suite('FileService', () => {
});
test('createFile', function(done: () => void) {
this.timeout(10000); // test tends to need longer?
let contents = 'Hello World';
service.createFile(uri.file(path.join(testDir, 'test.txt')), contents).done(s => {
assert.equal(s.name, 'test.txt');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册