test(docs-infra): remove incorrect preview server test (#36837)
The test was introduced in #23576, but the behavior the test was verifying does not match the actual behavior of `BuildCleaner#getOpenPrNumbers()`. The reason that the test did not fail is that the verification happened asynchronously, but the test completed synchronously (by accident). PR Close #36837
This commit is contained in:
parent
a5d1d1161b
commit
0a695e181e
|
@ -15,7 +15,6 @@ const EXISTING_DOWNLOADS = [
|
||||||
'20-1234567-build.zip',
|
'20-1234567-build.zip',
|
||||||
];
|
];
|
||||||
const OPEN_PRS = [10, 40];
|
const OPEN_PRS = [10, 40];
|
||||||
const ANY_DATE = jasmine.any(String);
|
|
||||||
|
|
||||||
// Tests
|
// Tests
|
||||||
describe('BuildCleaner', () => {
|
describe('BuildCleaner', () => {
|
||||||
|
@ -269,14 +268,6 @@ describe('BuildCleaner', () => {
|
||||||
prDeferred.resolve([{id: 0, number: 1}, {id: 1, number: 2}, {id: 2, number: 3}]);
|
prDeferred.resolve([{id: 0, number: 1}, {id: 1, number: 2}, {id: 2, number: 3}]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should log the number of open PRs', () => {
|
|
||||||
promise.then(prNumbers => {
|
|
||||||
expect(loggerLogSpy).toHaveBeenCalledWith(
|
|
||||||
ANY_DATE, 'BuildCleaner: ', `Open pull requests: ${prNumbers}`);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue