Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed how NuGetRestore L0 tests timeout #18799

Merged
merged 16 commits into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 11 additions & 33 deletions Tasks/NuGetRestoreV1/Tests/L0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ describe('NuGetRestore Suite', function () {
after(() => {
});
it('restore single solution', (done: Mocha.Done) => {
this.timeout(20000);

let tp = path.join(__dirname, 'singlesln.js')
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);

Expand All @@ -22,11 +20,9 @@ describe('NuGetRestore Suite', function () {
assert(tr.succeeded, 'should have succeeded');
assert.equal(tr.errorIssues.length, 0, "should have no errors");
done();
});
}).timeout(20000);

it('restore single solution with CredentialProvider', (done: Mocha.Done) => {
this.timeout(20000);

let tp = path.join(__dirname, 'singleslnCredentialProvider.js')
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);

Expand All @@ -40,11 +36,9 @@ describe('NuGetRestore Suite', function () {
assert.equal(tr.warningIssues.length, 1, "should have only 1 warning");
assert.equal(tr.errorIssues.length, 0, "should have no errors");
done();
});
}).timeout(20000);

it('restore packages.config', (done: Mocha.Done) => {
this.timeout(20000);

let tp = path.join(__dirname, 'pkgconfig.js')
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);

Expand All @@ -56,11 +50,9 @@ describe('NuGetRestore Suite', function () {
assert(tr.succeeded, 'should have succeeded');
assert.equal(tr.errorIssues.length, 0, "should have no errors");
done();
});
}).timeout(20000);

it('restore single solution with noCache', (done: Mocha.Done) => {
this.timeout(20000);

let tp = path.join(__dirname, 'singleslnNoCache.js')
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);

Expand All @@ -72,11 +64,9 @@ describe('NuGetRestore Suite', function () {
assert(tr.succeeded, 'should have succeeded');
assert.equal(tr.errorIssues.length, 0, "should have no errors");
done();
});
}).timeout(20000);

it('restore single solution with nuget config', (done: Mocha.Done) => {
this.timeout(20000);

let tp = path.join(__dirname, 'singleslnConfigFile.js')
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);

Expand All @@ -89,11 +79,9 @@ describe('NuGetRestore Suite', function () {
assert(tr.succeeded, 'should have succeeded');
assert.equal(tr.errorIssues.length, 0, "should have no errors");
done();
});
}).timeout(20000);

it('restore multiple solutions', (done: Mocha.Done) => {
this.timeout(20000);

let tp = path.join(__dirname, 'multiplesln.js')
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);

Expand All @@ -106,11 +94,9 @@ describe('NuGetRestore Suite', function () {
assert(tr.succeeded, 'should have succeeded');
assert.equal(tr.errorIssues.length, 0, "should have no errors");
done();
});
}).timeout(20000);

it('restore single solution mono', (done: Mocha.Done) => {
this.timeout(20000);

let tp = path.join(__dirname, 'singleslnMono.js')
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);

Expand All @@ -121,11 +107,9 @@ describe('NuGetRestore Suite', function () {
assert(tr.succeeded, 'should have succeeded');
assert.equal(tr.errorIssues.length, 0, "should have no errors");
done();
});
}).timeout(20000);

it('restore select vsts source', (done: Mocha.Done) => {
this.timeout(20000);

let tp = path.join(__dirname, 'selectSourceVsts.js')
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);

Expand All @@ -136,11 +120,9 @@ describe('NuGetRestore Suite', function () {
assert(tr.succeeded, 'should have succeeded');
assert.equal(tr.errorIssues.length, 0, "should have no errors");
done();
});
}).timeout(20000);

it('restore select nuget.org source', (done: Mocha.Done) => {
this.timeout(20000);

let tp = path.join(__dirname, 'selectSourceNuGetOrg.js')
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);

Expand All @@ -151,11 +133,9 @@ describe('NuGetRestore Suite', function () {
assert(tr.succeeded, 'should have succeeded');
assert.equal(tr.errorIssues.length, 0, "should have no errors");
done();
});
}).timeout(20000);

it('restore select multiple sources', (done: Mocha.Done) => {
this.timeout(20000);

let tp = path.join(__dirname, 'selectSourceMultiple.js')
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);

Expand All @@ -166,11 +146,9 @@ describe('NuGetRestore Suite', function () {
assert(tr.succeeded, 'should have succeeded');
assert.equal(tr.errorIssues.length, 0, "should have no errors");
done();
});
}).timeout(20000);

it('restore select nuget.org source succeeds with config', (done: Mocha.Done) => {
this.timeout(20000);

let tp = path.join(__dirname, 'nugetOrgBehaviorOnConfig.js')
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);

Expand All @@ -183,5 +161,5 @@ describe('NuGetRestore Suite', function () {
assert(tr.succeeded, 'should have succeeded');
assert.equal(tr.errorIssues.length, 0, "should have no errors");
done();
});
}).timeout(20000);
});
2 changes: 1 addition & 1 deletion Tasks/NuGetRestoreV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"version": {
"Major": 1,
"Minor": 226,
"Patch": 2
"Patch": 3
},
"runsOn": [
"Agent",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/NuGetRestoreV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"version": {
"Major": 1,
"Minor": 226,
"Patch": 2
"Patch": 3
},
"runsOn": [
"Agent",
Expand Down