Skip to content

Commit a24b4be

Browse files
authored
NuGetRestoreV1: Remove incorrect L0 tests (#17669) (#17670)
* NuGetRestoreV1 remove failing untestable l0 tests * bump task * revert
1 parent ef000bb commit a24b4be

File tree

3 files changed

+2
-30
lines changed

3 files changed

+2
-30
lines changed

Tasks/NuGetRestoreV1/Tests/L0.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -168,34 +168,6 @@ describe('NuGetRestore Suite', function () {
168168
done();
169169
});
170170

171-
it('restore select nuget.org source warns', (done: Mocha.Done) => {
172-
this.timeout(1000);
173-
174-
let tp = path.join(__dirname, './nugetOrgBehaviorWarn.js')
175-
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);
176-
177-
tr.run()
178-
assert(tr.invokedToolCount == 1, 'should have run NuGet once');
179-
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe restore c:\\agent\\home\\directory\\packages.config -NonInteractive -ConfigFile c:\\agent\\home\\directory\\tempNuGet_.config'), 'it should have run NuGet with nuget.org source');
180-
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
181-
assert(tr.succeeded, 'should have succeeded with issues');
182-
assert.equal(tr.errorIssues.length, 0, "should have no errors");
183-
done();
184-
});
185-
186-
it('restore select nuget.org source fails', (done: Mocha.Done) => {
187-
this.timeout(1000);
188-
189-
let tp = path.join(__dirname, './nugetOrgBehaviorFail.js')
190-
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);
191-
192-
tr.run()
193-
assert(tr.invokedToolCount == 0, 'should not run nuget');
194-
assert(tr.failed, 'should have Failed');
195-
assert.equal(tr.errorIssues.length, 2, "should have 2 errors");
196-
done();
197-
});
198-
199171
it('restore select nuget.org source succeeds with config', (done: Mocha.Done) => {
200172
this.timeout(1000);
201173

Tasks/NuGetRestoreV1/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "Microsoft Corporation",
1010
"version": {
1111
"Major": 1,
12-
"Minor": 214,
12+
"Minor": 216,
1313
"Patch": 0
1414
},
1515
"runsOn": [

Tasks/NuGetRestoreV1/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "Microsoft Corporation",
1010
"version": {
1111
"Major": 1,
12-
"Minor": 214,
12+
"Minor": 216,
1313
"Patch": 0
1414
},
1515
"runsOn": [

0 commit comments

Comments
 (0)