Skip to content

Commit f05c8c1

Browse files
author
Zoran Cvetkov
committed
cleanup
1 parent 31c54e5 commit f05c8c1

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

store/test-store/tests/postgres/graft.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ fn create_test_entity(
257257
seconds_age: age * 31557600,
258258
weight: Value::BigDecimal(weight.into()),
259259
coffee: coffee,
260-
favorite_color: favorite_color,
260+
favorite_color: favorite_color
261261
};
262262

263263
let entity_type = TEST_SUBGRAPH_SCHEMA.entity_type(entity_type).unwrap();
@@ -329,10 +329,9 @@ async fn check_graft(
329329

330330
// Make our own entries for block 2
331331
shaq.set("email", "[email protected]").unwrap();
332-
// shaq.set("vid", 5i64).unwrap();
333332
let op = EntityOperation::Set {
334333
key: user_type.parse_key("3").unwrap(),
335-
data: EntityV::new(shaq, 5),
334+
data: EntityV::new(shaq, 3),
336335
};
337336
transact_and_wait(&store, &deployment, BLOCKS[2].clone(), vec![op])
338337
.await

store/test-store/tests/postgres/store.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ fn handle_large_string_with_index() {
15221522
block: BlockNumber,
15231523
vid: i64,
15241524
) -> EntityModification {
1525-
let data = entity! { schema => id: id, name: name, vid: vid };
1525+
let data = entity! { schema => id: id, name: name };
15261526

15271527
let key = USER_TYPE.parse_key(id).unwrap();
15281528

@@ -1622,7 +1622,7 @@ fn handle_large_bytea_with_index() {
16221622
block: BlockNumber,
16231623
vid: i64,
16241624
) -> EntityModification {
1625-
let data = entity! { schema => id: id, bin_name: scalar::Bytes::from(name), vid: vid };
1625+
let data = entity! { schema => id: id, bin_name: scalar::Bytes::from(name) };
16261626

16271627
let key = USER_TYPE.parse_key(id).unwrap();
16281628

@@ -2157,15 +2157,15 @@ fn reorg_tracking() {
21572157
check_state!(store, 2, 2, 2);
21582158

21592159
// Forward to block 3
2160-
update_john(&subgraph_store, &deployment, 70, &TEST_BLOCK_3_PTR, 30).await;
2160+
update_john(&subgraph_store, &deployment, 70, &TEST_BLOCK_3_PTR, 5).await;
21612161
check_state!(store, 2, 2, 3);
21622162

21632163
// Forward to block 4
2164-
update_john(&subgraph_store, &deployment, 71, &TEST_BLOCK_4_PTR, 40).await;
2164+
update_john(&subgraph_store, &deployment, 71, &TEST_BLOCK_4_PTR, 6).await;
21652165
check_state!(store, 2, 2, 4);
21662166

21672167
// Forward to block 5
2168-
update_john(&subgraph_store, &deployment, 72, &TEST_BLOCK_5_PTR, 50).await;
2168+
update_john(&subgraph_store, &deployment, 72, &TEST_BLOCK_5_PTR, 7).await;
21692169
check_state!(store, 2, 2, 5);
21702170

21712171
// Revert all the way back to block 2

0 commit comments

Comments
 (0)