Skip to content

Commit

Permalink
removing unnecessary async from db tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FayCarsons committed Feb 12, 2024
1 parent 2c4f269 commit d51b1bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/src/tests/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ mod tests {
conn.connection();
}

#[actix_web::test]
async fn insert_order() {
#[test]
fn insert_order() {
let order = JsonOrder {
name: String::from("William Burroughs"),
street: String::from("3616 E Broad st, Richond, VA"),
Expand Down Expand Up @@ -73,8 +73,8 @@ mod tests {
assert!(insert.is_ok())
}

#[actix_web::test]
async fn insert_stock() {
#[test]
fn insert_stock() {
use crate::schema::stock::{self, id};
let stock = fs::read_to_string("stock.json")
.unwrap();
Expand Down

0 comments on commit d51b1bb

Please sign in to comment.