Skip to content

Commit

Permalink
Update some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 9, 2025
1 parent d056aa0 commit 21d76fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion crates/store/re_chunk_store/tests/memory_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fn scalar_memory_overhead() {
let entity_path = re_log_types::entity_path!("scalar");
let timepoint =
TimePoint::default().with(Timeline::new("log_time", TimeType::Time), i as i64);
let scalars = Scalar::to_arrow2([Scalar::from(i as f64)]).unwrap();
let scalars = Scalar::to_arrow([Scalar::from(i as f64)]).unwrap();

let row = PendingRow::new(
timepoint,
Expand Down
18 changes: 9 additions & 9 deletions crates/top/re_sdk/src/recording_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2556,19 +2556,19 @@ mod tests {
components: [
(
MyPoint::descriptor(),
<MyPoint as Loggable>::to_arrow2([
<MyPoint as Loggable>::to_arrow([
MyPoint::new(10.0, 10.0),
MyPoint::new(20.0, 20.0),
])
.unwrap(),
), //
(
MyColor::descriptor(),
<MyColor as Loggable>::to_arrow2([MyColor(0x8080_80FF)]).unwrap(),
<MyColor as Loggable>::to_arrow([MyColor(0x8080_80FF)]).unwrap(),
), //
(
MyLabel::descriptor(),
<MyLabel as Loggable>::to_arrow2([] as [MyLabel; 0]).unwrap(),
<MyLabel as Loggable>::to_arrow([] as [MyLabel; 0]).unwrap(),
), //
]
.into_iter()
Expand All @@ -2583,15 +2583,15 @@ mod tests {
components: [
(
MyPoint::descriptor(),
<MyPoint as Loggable>::to_arrow2([] as [MyPoint; 0]).unwrap(),
<MyPoint as Loggable>::to_arrow([] as [MyPoint; 0]).unwrap(),
), //
(
MyColor::descriptor(),
<MyColor as Loggable>::to_arrow2([] as [MyColor; 0]).unwrap(),
<MyColor as Loggable>::to_arrow([] as [MyColor; 0]).unwrap(),
), //
(
MyLabel::descriptor(),
<MyLabel as Loggable>::to_arrow2([] as [MyLabel; 0]).unwrap(),
<MyLabel as Loggable>::to_arrow([] as [MyLabel; 0]).unwrap(),
), //
]
.into_iter()
Expand All @@ -2606,15 +2606,15 @@ mod tests {
components: [
(
MyPoint::descriptor(),
<MyPoint as Loggable>::to_arrow2([] as [MyPoint; 0]).unwrap(),
<MyPoint as Loggable>::to_arrow([] as [MyPoint; 0]).unwrap(),
), //
(
MyColor::descriptor(),
<MyColor as Loggable>::to_arrow2([MyColor(0xFFFF_FFFF)]).unwrap(),
<MyColor as Loggable>::to_arrow([MyColor(0xFFFF_FFFF)]).unwrap(),
), //
(
MyLabel::descriptor(),
<MyLabel as Loggable>::to_arrow2([MyLabel("hey".into())]).unwrap(),
<MyLabel as Loggable>::to_arrow([MyLabel("hey".into())]).unwrap(),
), //
]
.into_iter()
Expand Down

0 comments on commit 21d76fd

Please sign in to comment.