Skip to content

Commit

Permalink
fix: update tests after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielc committed Oct 9, 2024
1 parent e4bcc38 commit c9f26e8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions olap/src/aggregator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ mod tests {
],
},
previous: vec![],
data: r#"{"a":0}"#.into(),
data: r#"{"metadata":{"foo":1,"shouldIndex":true},"data":{"a":0}}"#.into(),
}),
ConclusionEvent::Data(ConclusionData {
index: 2,
Expand All @@ -987,18 +987,18 @@ mod tests {
previous: vec![Cid::from_str(
"baeabeials2i6o2ppkj55kfbh7r2fzc73r2esohqfivekpag553lyc7f6bi",
)?],
data: r#"[{"op":"replace", "path": "/a", "value":1}]"#.into(),
data: r#"{"metadata":{"foo":2,"shouldIndex":false},"data":[{"op":"replace", "path": "/a", "value":1}]}"#.into(),
}),
])?)
.await?;

expect![[r#"
+-------+-------------------------------------------------------------+------------+-------------+---------------------------------------------------------+-------------------------------------------------------------+---------+
| index | stream_cid | event_type | controller | dimensions | event_cid | state |
+-------+-------------------------------------------------------------+------------+-------------+---------------------------------------------------------+-------------------------------------------------------------+---------+
| 1 | baeabeif2fdfqe2hu6ugmvgozkk3bbp5cqi4udp5rerjmz4pdgbzf3fvobu | 0 | did:key:bob | {controller: 6469643a6b65793a626f62, model: 6d6f64656c} | baeabeials2i6o2ppkj55kfbh7r2fzc73r2esohqfivekpag553lyc7f6bi | {"a":0} |
| 2 | baeabeif2fdfqe2hu6ugmvgozkk3bbp5cqi4udp5rerjmz4pdgbzf3fvobu | 0 | did:key:bob | {controller: 6469643a6b65793a626f62, model: 6d6f64656c} | baeabeifwi4ddwafoqe6htkx3g5gtjz5adapj366w6mraut4imk2ljwu3du | {"a":1} |
+-------+-------------------------------------------------------------+------------+-------------+---------------------------------------------------------+-------------------------------------------------------------+---------+"#]].assert_eq(&doc_state.to_string());
+-------+-------------------------------------------------------------+------------+-------------+---------------------------------------------------------+-------------------------------------------------------------+-----------------------------------------------------------+
| index | stream_cid | event_type | controller | dimensions | event_cid | state |
+-------+-------------------------------------------------------------+------------+-------------+---------------------------------------------------------+-------------------------------------------------------------+-----------------------------------------------------------+
| 1 | baeabeif2fdfqe2hu6ugmvgozkk3bbp5cqi4udp5rerjmz4pdgbzf3fvobu | 0 | did:key:bob | {controller: 6469643a6b65793a626f62, model: 6d6f64656c} | baeabeials2i6o2ppkj55kfbh7r2fzc73r2esohqfivekpag553lyc7f6bi | {"metadata":{"foo":1,"shouldIndex":true},"data":{"a":0}} |
| 2 | baeabeif2fdfqe2hu6ugmvgozkk3bbp5cqi4udp5rerjmz4pdgbzf3fvobu | 0 | did:key:bob | {controller: 6469643a6b65793a626f62, model: 6d6f64656c} | baeabeifwi4ddwafoqe6htkx3g5gtjz5adapj366w6mraut4imk2ljwu3du | {"metadata":{"foo":2,"shouldIndex":false},"data":{"a":1}} |
+-------+-------------------------------------------------------------+------------+-------------+---------------------------------------------------------+-------------------------------------------------------------+-----------------------------------------------------------+"#]].assert_eq(&doc_state.to_string());
Ok(())
}
}

0 comments on commit c9f26e8

Please sign in to comment.