mirror of
https://github.com/denoland/deno.git
synced 2024-12-11 01:58:05 -05:00
chore: fix flaky specs::publish::npm_workspace_jsr_pkg_with_npm_dep::dep_and_workspace_dep
(#27098)
Closes https://github.com/denoland/deno/issues/27097
This commit is contained in:
parent
a750314e04
commit
e2f7e031b3
7 changed files with 5 additions and 17 deletions
|
@ -17,7 +17,6 @@ use file_test_runner::collection::CollectTestsError;
|
||||||
use file_test_runner::collection::CollectedCategoryOrTest;
|
use file_test_runner::collection::CollectedCategoryOrTest;
|
||||||
use file_test_runner::collection::CollectedTest;
|
use file_test_runner::collection::CollectedTest;
|
||||||
use file_test_runner::collection::CollectedTestCategory;
|
use file_test_runner::collection::CollectedTestCategory;
|
||||||
use file_test_runner::SubTestResult;
|
|
||||||
use file_test_runner::TestResult;
|
use file_test_runner::TestResult;
|
||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
@ -256,19 +255,10 @@ fn run_test(test: &CollectedTest<serde_json::Value>) -> TestResult {
|
||||||
if metadata.ignore {
|
if metadata.ignore {
|
||||||
TestResult::Ignored
|
TestResult::Ignored
|
||||||
} else if let Some(repeat) = metadata.repeat {
|
} else if let Some(repeat) = metadata.repeat {
|
||||||
TestResult::SubTests(
|
for _ in 0..repeat {
|
||||||
(0..repeat)
|
run_test_inner(&metadata, &cwd, diagnostic_logger.clone());
|
||||||
.map(|i| {
|
}
|
||||||
let diagnostic_logger = diagnostic_logger.clone();
|
TestResult::Passed
|
||||||
SubTestResult {
|
|
||||||
name: format!("run {}", i + 1),
|
|
||||||
result: TestResult::from_maybe_panic(AssertUnwindSafe(|| {
|
|
||||||
run_test_inner(&metadata, &cwd, diagnostic_logger);
|
|
||||||
})),
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.collect(),
|
|
||||||
)
|
|
||||||
} else {
|
} else {
|
||||||
run_test_inner(&metadata, &cwd, diagnostic_logger.clone());
|
run_test_inner(&metadata, &cwd, diagnostic_logger.clone());
|
||||||
TestResult::Passed
|
TestResult::Passed
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"tempDir": true,
|
||||||
"tests": {
|
"tests": {
|
||||||
"dep_and_workspace_dep": {
|
"dep_and_workspace_dep": {
|
||||||
"steps": [{
|
"steps": [{
|
||||||
|
|
0
tests/specs/publish/npm_workspace_jsr_pkg_with_npm_dep/node_modules/.deno/.deno.lock
generated
vendored
0
tests/specs/publish/npm_workspace_jsr_pkg_with_npm_dep/node_modules/.deno/.deno.lock
generated
vendored
|
@ -1 +0,0 @@
|
||||||
1
|
|
BIN
tests/specs/publish/npm_workspace_jsr_pkg_with_npm_dep/node_modules/.deno/.setup-cache.bin
generated
vendored
BIN
tests/specs/publish/npm_workspace_jsr_pkg_with_npm_dep/node_modules/.deno/.setup-cache.bin
generated
vendored
Binary file not shown.
1
tests/specs/publish/npm_workspace_jsr_pkg_with_npm_dep/node_modules/add
generated
vendored
1
tests/specs/publish/npm_workspace_jsr_pkg_with_npm_dep/node_modules/add
generated
vendored
|
@ -1 +0,0 @@
|
||||||
../add
|
|
1
tests/specs/publish/npm_workspace_jsr_pkg_with_npm_dep/node_modules/add-dep
generated
vendored
1
tests/specs/publish/npm_workspace_jsr_pkg_with_npm_dep/node_modules/add-dep
generated
vendored
|
@ -1 +0,0 @@
|
||||||
../add
|
|
Loading…
Reference in a new issue