Revert "refactor: don't expose Deno[Deno.internal].core namespace" (#18881)

Also conditionally disabled one test if there's not enough space on
device.
This commit is contained in:
Bartek Iwańczuk 2023-04-28 00:37:03 +02:00 committed by GitHub
parent 504482dadd
commit 683dbd7f3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 75 additions and 97 deletions

View file

@ -164,7 +164,13 @@ Deno.test(
const bytes = new Uint8Array(kStringMaxLengthPlusOne);
const filePath = "cli/tests/testdata/too_big_a_file.txt";
Deno.writeFileSync(filePath, bytes);
try {
Deno.writeFileSync(filePath, bytes);
} catch {
// NOTE(bartlomieju): writing a 0.5Gb file might be too much for CI,
// so skip running if writing fails.
return;
}
assertThrows(
() => {
@ -185,7 +191,13 @@ Deno.test(
const bytes = new Uint8Array(kStringMaxLengthPlusOne);
const filePath = "cli/tests/testdata/too_big_a_file_2.txt";
await Deno.writeFile(filePath, bytes);
try {
await Deno.writeFile(filePath, bytes);
} catch {
// NOTE(bartlomieju): writing a 0.5Gb file might be too much for CI,
// so skip running if writing fails.
return;
}
await assertRejects(
async () => {