Fix: bug in post creation test

This commit is contained in:
Mahesh Bansod 2021-10-30 22:17:45 +05:30
parent 72c5a8976b
commit 0ff1cbbad4
1 changed files with 2 additions and 2 deletions

View File

@ -366,8 +366,8 @@ mod tests {
.sample_iter(&Alphanumeric)
.take(30)
.map(char::from)
.collect();
let post = client.compose_post(post_text, Vec::new()).await?;
.collect::<String>();
let post = client.compose_post(&post_text, Vec::new()).await?;
if !client.delete_post(post.id).await? {
panic!("Delete post returned false unexpectedly.")
}