Skip to content

Commit 5fcdf1c

Browse files
authored
Convert the test-client to async (#76)
1 parent 1fade1e commit 5fcdf1c

File tree

4 files changed

+199
-142
lines changed

4 files changed

+199
-142
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ reqwest.workspace = true
1111
scim2-rs.workspace = true
1212
serde.workspace = true
1313
serde_json.workspace = true
14+
tokio.workspace = true
1415
unicase.workspace = true
1516
uuid.workspace = true
16-

test-client/src/bin/scim2-test-client.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ struct Args {
1616
bearer: Option<String>,
1717
}
1818

19-
fn main() -> anyhow::Result<()> {
19+
#[tokio::main]
20+
async fn main() -> anyhow::Result<()> {
2021
let opt: Args = Args::try_parse()?;
2122

2223
let tester = Tester::new(opt.url, opt.bearer)?;
23-
tester.run()?;
24+
tester.run().await?;
2425

2526
println!("SUCCESS");
2627

0 commit comments

Comments
 (0)