cargo fix on server

This commit is contained in:
Priec
2025-10-26 16:07:19 +01:00
parent 492f1f1e55
commit 11185282c4
15 changed files with 7 additions and 20 deletions

View File

@@ -8,7 +8,6 @@ use server::table_definition::handlers::post_table_definition;
use server::tables_data::handlers::get_table_data_by_position;
use crate::common::setup_test_db;
use chrono::Utc;
use serde_json::json;
#[fixture]
async fn pool() -> PgPool {

View File

@@ -5,14 +5,12 @@ use common::proto::komp_ac::tables_data::GetTableDataRequest;
use crate::common::setup_test_db;
use sqlx::{PgPool, Row};
use tonic;
use chrono::{DateTime, Utc};
use chrono::Utc;
use serde_json::json;
use std::collections::HashMap;
use futures::future::join_all;
use rand::distr::Alphanumeric;
use rand::Rng;
use rust_decimal::Decimal;
use rust_decimal_macros::dec;
use server::table_definition::handlers::post_table_definition;
use server::tables_data::handlers::post_table_data;
use common::proto::komp_ac::table_definition::{
@@ -22,7 +20,6 @@ use common::proto::komp_ac::tables_data::PostTableDataRequest;
use prost_types::Value;
use prost_types::value::Kind;
use tokio::sync::mpsc;
use server::indexer::IndexCommand;
#[fixture]
async fn pool() -> PgPool {

View File

@@ -795,7 +795,7 @@ async fn test_retrieve_from_nonexistent_schema() {
#[rstest]
#[tokio::test]
async fn test_retrieve_with_database_connection_error() {
let mut closed_pool = setup_test_db().await;
let closed_pool = setup_test_db().await;
closed_pool.close().await;
let request = GetTableDataRequest {