Skip to content

Commit bce946f

Browse files
committed
refactor: removed unneeded intermediary var
1 parent d0015d5 commit bce946f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/integration/contexts/about.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ use crate::integration::environment::TestEnv;
33

44
#[tokio::test]
55
async fn it_should_load_the_about_page_with_information_about_the_api() {
6-
let env = TestEnv::running().await;
7-
let client = env.unauthenticated_client();
6+
let client = TestEnv::running().await.unauthenticated_client();
87

98
let response = client.about().await;
109

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

1514
#[tokio::test]
1615
async fn it_should_load_the_license_page_at_the_api_entrypoint() {
17-
let env = TestEnv::running().await;
18-
let client = env.unauthenticated_client();
16+
let client = TestEnv::running().await.unauthenticated_client();
1917

2018
let response = client.license().await;
2119

0 commit comments

Comments
 (0)