Skip to content

Commit 6fde412

Browse files
committed
progress
1 parent 1ad93e6 commit 6fde412

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

crates/pgls_lsp/tests/server.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -858,19 +858,18 @@ async fn test_execute_statement(test_db: PgPool) -> Result<()> {
858858
server.load_configuration().await?;
859859

860860
let users_tbl_exists = async || {
861-
let result = sqlx::query!(
861+
sqlx::query_scalar::<_, bool>(
862862
r#"
863863
select exists (
864-
select 1 as exists
864+
select 1
865865
from pg_catalog.pg_tables
866866
where tablename = 'users'
867-
);
868-
"#
867+
)
868+
"#,
869869
)
870870
.fetch_one(&test_db.clone())
871-
.await;
872-
873-
result.unwrap().exists.unwrap()
871+
.await
872+
.unwrap()
874873
};
875874

876875
assert!(

0 commit comments

Comments
 (0)