Skip to content

Commit

Permalink
Fixes master node tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amigin committed Sep 21, 2024
1 parent 19badf4 commit ecef022
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions my-no-sql-core/src/db/db_partition/db_rows_container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ mod tests {
let test_json = r#"{
"PartitionKey": "test",
"RowKey": "test",
"Expires": "2019-01-01T00:00:00",
"Expires": "2019-01-01T00:00:00"
}"#;

let time_stamp = JsonTimeStamp::now();
Expand All @@ -183,7 +183,7 @@ mod tests {
fn test_that_index_does_not_appear_since_we_do_not_have_expiration() {
let test_json = r#"{
"PartitionKey": "test",
"RowKey": "test",
"RowKey": "test"
}"#;

let time_stamp = JsonTimeStamp::now();
Expand Down Expand Up @@ -253,7 +253,7 @@ mod tests {
let test_json = r#"{
"PartitionKey": "test",
"RowKey": "test",
"Expires": "2019-01-01T00:00:00",
"Expires": "2019-01-01T00:00:00"
}"#;

let time_stamp = JsonTimeStamp::now();
Expand Down Expand Up @@ -292,7 +292,7 @@ mod tests {
let test_json = r#"{
"PartitionKey": "test",
"RowKey": "test",
"Expires": "2019-01-01T00:00:00",
"Expires": "2019-01-01T00:00:00"
}"#;

let now = JsonTimeStamp::now();
Expand Down Expand Up @@ -321,7 +321,7 @@ mod tests {
let test_json = r#"{
"PartitionKey": "test",
"RowKey": "test",
"Expires": "2019-01-01T00:00:00",
"Expires": "2019-01-01T00:00:00"
}"#;

let now = JsonTimeStamp::now();
Expand All @@ -347,7 +347,7 @@ mod tests {
let test_json = r#"{
"PartitionKey": "test",
"RowKey": "test",
"Expires": "2019-01-01T00:00:00",
"Expires": "2019-01-01T00:00:00"
}"#;
let now = JsonTimeStamp::now();

Expand All @@ -372,7 +372,7 @@ mod tests {

let json = r#"{
"PartitionKey": "test",
"RowKey": "test1",
"RowKey": "test1"
}"#;

let db_row = DbJsonEntity::parse_into_db_row(
Expand All @@ -389,7 +389,7 @@ mod tests {

let raw_json = r#"{
"PartitionKey": "test",
"RowKey": "test2",
"RowKey": "test2"
}"#;

let db_row = DbJsonEntity::parse_into_db_row(
Expand All @@ -406,7 +406,7 @@ mod tests {

let json_db_row = r#"{
"PartitionKey": "test",
"RowKey": "test3",
"RowKey": "test3"
}"#;

let db_row = DbJsonEntity::parse_into_db_row(
Expand All @@ -423,7 +423,7 @@ mod tests {

let raw_json = r#"{
"PartitionKey": "test",
"RowKey": "test4",
"RowKey": "test4"
}"#;

let db_row = DbJsonEntity::parse_into_db_row(
Expand Down
2 changes: 1 addition & 1 deletion my-no-sql-core/src/db/db_row/test_expires_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mod test {
let test_json = r#"{
"PartitionKey": "TestPk",
"RowKey": "TestRk",
"Expires": "2019-01-01T00:00:00",
"Expires": "2019-01-01T00:00:00"
}"#;

let inject_time_stamp = JsonTimeStamp::now();
Expand Down
4 changes: 2 additions & 2 deletions my-no-sql-core/src/db/db_table/db_table_master_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ mod tests {

let test_json = r#"{
"PartitionKey": "test",
"RowKey": "test",
"RowKey": "test"
}"#;

let db_row = DbJsonEntity::parse_into_db_row(test_json.as_bytes().into(), &now).unwrap();
Expand All @@ -146,7 +146,7 @@ mod tests {

let test_json = r#"{
"PartitionKey": "test",
"RowKey": "test",
"RowKey": "test"
}"#;

let db_row = DbJsonEntity::parse_into_db_row(test_json.as_bytes().into(), &now).unwrap();
Expand Down

0 comments on commit ecef022

Please sign in to comment.