Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hatchan committed Sep 26, 2024
1 parent 6f970c3 commit 42883af
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions fpx-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,3 @@ libsql = { version = "0.5", default-features = false, features = [
"serde",
"replication",
] }

[dev-dependencies]
test-log = { version = "0.2", default-features = false, features = ["trace"] }
1 change: 1 addition & 0 deletions fpx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ wasm-bindgen = { version = "0.2", default-features = false, optional = true }

[dev-dependencies]
http-body-util = { version = "0.1", default-features = false }
test-log = { version = "0.2", default-features = false, features = ["trace"] }
tokio = { version = "1.40", default-features = false, features = [
"macros",
"test-util",
Expand Down
10 changes: 5 additions & 5 deletions fpx/src/data/libsql_store/tests.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::data::LibsqlStore;
use fpx::api::models::{AttributeMap, SpanKind};
use fpx::data::models::{HexEncodedId, Span};
use fpx::data::Store;
use crate::api::models::{AttributeMap, SpanKind};
use crate::data::libsql_store::LibsqlStore;
use crate::data::models::{HexEncodedId, Span};
use crate::data::Store;
use test_log::test;

/// Tests creating a span and then retrieving it using the various methods.
Expand All @@ -25,7 +25,7 @@ async fn span_successful() {
let span_id = HexEncodedId::new("a6c0ed7c2f81e7c8").unwrap();

let now = time::OffsetDateTime::now_utc();
let inner_span: fpx::api::models::Span = fpx::api::models::Span {
let inner_span = crate::api::models::Span {
trace_id: trace_id.clone(),
span_id: span_id.clone(),
parent_span_id: None,
Expand Down

0 comments on commit 42883af

Please sign in to comment.