-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from wacker-dev/client-tests
Use the wasmtime library instead of the binary to run client tests
- Loading branch information
Showing
5 changed files
with
71 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
use super::run_wasi; | ||
|
||
#[tokio::test(flavor = "multi_thread")] | ||
async fn get_chunk() { | ||
run_wasi(test_programs_artifacts::CLIENT_GET_CHUNK_COMPONENT) | ||
.await | ||
.unwrap(); | ||
} | ||
|
||
#[tokio::test(flavor = "multi_thread")] | ||
async fn get_with_query() { | ||
run_wasi(test_programs_artifacts::CLIENT_GET_WITH_QUERY_COMPONENT) | ||
.await | ||
.unwrap(); | ||
} | ||
|
||
#[tokio::test(flavor = "multi_thread")] | ||
async fn post_with_form_data() { | ||
run_wasi(test_programs_artifacts::CLIENT_POST_WITH_FORM_DATA_COMPONENT) | ||
.await | ||
.unwrap(); | ||
} | ||
|
||
#[tokio::test(flavor = "multi_thread")] | ||
async fn post_with_json_data() { | ||
run_wasi(test_programs_artifacts::CLIENT_POST_WITH_JSON_DATA_COMPONENT) | ||
.await | ||
.unwrap(); | ||
} | ||
|
||
#[tokio::test(flavor = "multi_thread")] | ||
async fn post_with_multipart_form_data() { | ||
run_wasi(test_programs_artifacts::CLIENT_POST_WITH_MULTIPART_FORM_DATA_COMPONENT) | ||
.await | ||
.unwrap(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.