mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
chore(tests): fix flaky test_no_lock (#18206)
The test output capturing is known to be flaky. Closes #18199
This commit is contained in:
parent
7070b8ed50
commit
5c505316b3
6 changed files with 12 additions and 10 deletions
|
@ -1,6 +1,5 @@
|
|||
Download http://localhost:4545/lockfile/basic/mod.ts
|
||||
Check file:///[WILDCARD]/main.bench.ts
|
||||
5
|
||||
cpu: [WILDCARD]
|
||||
runtime: [WILDCARD]
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import "./main.ts";
|
||||
import { getValue } from "mod";
|
||||
|
||||
Deno.bench("bench", () => {
|
||||
const testing = 1 + 2;
|
||||
if (testing !== 3) {
|
||||
const testing = 1 + getValue();
|
||||
if (testing !== 6) {
|
||||
throw "FAIL";
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import "./main.ts";
|
||||
import { getValue } from "mod";
|
||||
|
||||
Deno.test("test", () => {
|
||||
const testing = 1 + 2;
|
||||
if (testing !== 3) {
|
||||
const testing = 1 + getValue();
|
||||
if (testing !== 6) {
|
||||
throw "FAIL";
|
||||
}
|
||||
});
|
||||
|
|
4
cli/tests/testdata/lockfile/basic/main.ts
vendored
4
cli/tests/testdata/lockfile/basic/main.ts
vendored
|
@ -1 +1,3 @@
|
|||
import "mod";
|
||||
import { getValue } from "mod";
|
||||
|
||||
console.log(getValue());
|
||||
|
|
4
cli/tests/testdata/lockfile/basic/mod.ts
vendored
4
cli/tests/testdata/lockfile/basic/mod.ts
vendored
|
@ -1 +1,3 @@
|
|||
console.log(5);
|
||||
export function getValue() {
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
Download http://localhost:4545/lockfile/basic/mod.ts
|
||||
Check file:///[WILDCARD]/main.test.ts
|
||||
5
|
||||
running 1 test from ./main.test.ts
|
||||
[WILDCARD]
|
||||
|
|
Loading…
Reference in a new issue