From 4bcc411e0703a6a11df46daa46cd55bd9903652d Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Thu, 30 Nov 2023 18:20:36 +0800 Subject: [PATCH] chore: fix autofix for goldentests (#921) * chore: fix autofix for goldentests * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- crates/tabby/tests/goldentests_chat.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/tabby/tests/goldentests_chat.rs b/crates/tabby/tests/goldentests_chat.rs index 1e464a9..ff54c88 100644 --- a/crates/tabby/tests/goldentests_chat.rs +++ b/crates/tabby/tests/goldentests_chat.rs @@ -3,7 +3,6 @@ use std::path::PathBuf; use assert_json_diff::assert_json_include; use lazy_static::lazy_static; use serde::Deserialize; -use serde_json::json; use serde_jsonlines::BufReadExt; use tokio::{ process::Command, @@ -84,7 +83,7 @@ async fn golden_test(body: serde_json::Value, expected: serde_json::Value) { .bytes() .await .unwrap(); - + let lines = bytes.json_lines::(); let mut actual = "".to_owned(); for x in lines {