Skip to content

Commit

Permalink
refactor: removed unneeded intermediary var
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed May 2, 2023
1 parent d0015d5 commit bce946f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/integration/contexts/about.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ use crate::integration::environment::TestEnv;

#[tokio::test]
async fn it_should_load_the_about_page_with_information_about_the_api() {
let env = TestEnv::running().await;
let client = env.unauthenticated_client();
let client = TestEnv::running().await.unauthenticated_client();

let response = client.about().await;

Expand All @@ -14,8 +13,7 @@ async fn it_should_load_the_about_page_with_information_about_the_api() {

#[tokio::test]
async fn it_should_load_the_license_page_at_the_api_entrypoint() {
let env = TestEnv::running().await;
let client = env.unauthenticated_client();
let client = TestEnv::running().await.unauthenticated_client();

let response = client.license().await;

Expand Down

0 comments on commit bce946f

Please sign in to comment.