mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -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
d84da1520f
commit
1cc5482ca8
6 changed files with 12 additions and 10 deletions
|
@ -1,6 +1,5 @@
|
||||||
Download http://localhost:4545/lockfile/basic/mod.ts
|
Download http://localhost:4545/lockfile/basic/mod.ts
|
||||||
Check file:///[WILDCARD]/main.bench.ts
|
Check file:///[WILDCARD]/main.bench.ts
|
||||||
5
|
|
||||||
cpu: [WILDCARD]
|
cpu: [WILDCARD]
|
||||||
runtime: [WILDCARD]
|
runtime: [WILDCARD]
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import "./main.ts";
|
import { getValue } from "mod";
|
||||||
|
|
||||||
Deno.bench("bench", () => {
|
Deno.bench("bench", () => {
|
||||||
const testing = 1 + 2;
|
const testing = 1 + getValue();
|
||||||
if (testing !== 3) {
|
if (testing !== 6) {
|
||||||
throw "FAIL";
|
throw "FAIL";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import "./main.ts";
|
import { getValue } from "mod";
|
||||||
|
|
||||||
Deno.test("test", () => {
|
Deno.test("test", () => {
|
||||||
const testing = 1 + 2;
|
const testing = 1 + getValue();
|
||||||
if (testing !== 3) {
|
if (testing !== 6) {
|
||||||
throw "FAIL";
|
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
|
Download http://localhost:4545/lockfile/basic/mod.ts
|
||||||
Check file:///[WILDCARD]/main.test.ts
|
Check file:///[WILDCARD]/main.test.ts
|
||||||
5
|
|
||||||
running 1 test from ./main.test.ts
|
running 1 test from ./main.test.ts
|
||||||
[WILDCARD]
|
[WILDCARD]
|
||||||
|
|
Loading…
Reference in a new issue