Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Dec 19, 2023
1 parent 4e4c244 commit 3926d0c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dwn-server/tests/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ async fn requires_data_descriptors() {
.build()
.expect("Failed to build message");

// Ensure base message is valid
{
let body = RequestBody {
messages: vec![msg.clone()],
};
expect_status(body, port, StatusCode::OK).await;
}

let mut without_cid = msg.clone();
without_cid.descriptor.data_cid = None;
without_cid.record_id = without_cid.generate_record_id().unwrap();
Expand Down

0 comments on commit 3926d0c

Please sign in to comment.