Skip to content

Commit 5b709ac

Browse files
committed
test: fix test error for bad sync cond
1 parent 07d5a96 commit 5b709ac

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

tests/ui/test_fail/04-bad-sync-cond.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
1-
use maybe_async::maybe_async;
2-
3-
#[maybe_async]
4-
async fn async_fn() -> bool {
5-
true
6-
}
7-
81
// bad sync condition
92
#[maybe_async::test(unknown(feature="async", async_std::test))]
10-
async fn test_async_fn() {
11-
let res = async_fn().await;
12-
assert_eq!(res, true);
13-
}
3+
async fn test_async_fn() {}
144

155
fn main() {
166

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0537]: invalid predicate `unknown`
2-
--> tests/ui/test_fail/04-bad-sync-cond.rs:9:21
2+
--> tests/ui/test_fail/04-bad-sync-cond.rs:2:21
33
|
4-
9 | #[maybe_async::test(unknown(feature="async", async_std::test))]
4+
2 | #[maybe_async::test(unknown(feature="async", async_std::test))]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)