Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchantey committed Jan 12, 2025
1 parent 5e054bd commit 71d1139
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"rust-analyzer.cargo.features": ["sweet/bevy"],
// "rust-analyzer.files.excludeDirs": ["tests"],
// "rust-analyzer.cargo.target": "wasm32-unknown-unknown",
"rust-analyzer.cargo.target": "wasm32-unknown-unknown",
"deno.enable": true,
"search.exclude": {
"**/node_modules": true,
Expand Down
2 changes: 1 addition & 1 deletion cli/src/test_runners/deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import init from './bindgen.js'

// THIS FILE IS CACHED
// During development, delete target/sweet/deno.ts in between changes
// ⚠️⚠️⚠️⚠️ For the love of god delete target/sweet/deno.ts in between changes ⚠️⚠️⚠️⚠️

// cwd will be relative to the crate, ie
// cargo test --workspace is different cwd from cargo test -p my_crate
Expand Down
1 change: 1 addition & 0 deletions src/wasm/run_libtest_wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ pub async fn run_with_pending() -> Result<(), JsValue> {
result_rx,
} = PartialRunnerState::take().ok_or("no partial runner state")?;


let futs = futures.into_iter().map(|fut| async {
TestFuture::new(fut.desc, result_tx.clone(), async move {
(fut.fut)().await.ok();
Expand Down
1 change: 0 additions & 1 deletion src/wasm/test_future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ impl<F: Future<Output = Result<JsValue, JsValue>>> Future for TestFuture<F> {
}
}


match future_poll_output {
Some(Poll::Pending) => Poll::Pending,
_ => {
Expand Down
2 changes: 0 additions & 2 deletions test_examples/hello_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ async fn dummy4() { sleep(Duration::from_secs(1)).await; }
#[sweet::test]
#[should_panic]
async fn dummy5() {
sweet::log!("here1");
sleep(Duration::from_secs(1)).await;
sweet::log!("here2");
panic!("whaya");
}

Expand Down

0 comments on commit 71d1139

Please sign in to comment.