Skip to content

Commit

Permalink
None previous_fee_versions when overwrite (insert) is false
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielides committed Jul 4, 2024
1 parent 33ab299 commit 1ef064e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
18 changes: 9 additions & 9 deletions packages/rs-drive/src/drive/document/delete/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ mod tests {
true,
None,
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -225,7 +225,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -365,7 +365,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -400,7 +400,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -546,7 +546,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -577,7 +577,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -647,7 +647,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -822,7 +822,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -922,7 +922,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down
30 changes: 15 additions & 15 deletions packages/rs-drive/src/drive/document/insert/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ mod tests {
true,
None,
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand All @@ -162,7 +162,7 @@ mod tests {
true,
None,
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect_err("expected not to be able to insert same document twice");

Expand Down Expand Up @@ -236,7 +236,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand All @@ -258,7 +258,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect_err("expected not to be able to insert same document twice");

Expand Down Expand Up @@ -332,7 +332,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -397,7 +397,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -467,7 +467,7 @@ mod tests {
false,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -527,7 +527,7 @@ mod tests {
false,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand All @@ -549,7 +549,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -695,7 +695,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -773,7 +773,7 @@ mod tests {
true,
None,
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand All @@ -795,7 +795,7 @@ mod tests {
true,
None,
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand All @@ -817,7 +817,7 @@ mod tests {
true,
None,
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");
}
Expand Down Expand Up @@ -868,7 +868,7 @@ mod tests {
true,
None,
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand All @@ -890,7 +890,7 @@ mod tests {
true,
None,
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect_err(
"expected not to be able to insert document with already existing unique index",
Expand Down
8 changes: 4 additions & 4 deletions packages/rs-drive/src/drive/document/update/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ mod tests {
true,
None,
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("should add document");

Expand Down Expand Up @@ -745,7 +745,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -842,7 +842,7 @@ mod tests {
true,
Some(&db_transaction),
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("expected to insert a document successfully");

Expand Down Expand Up @@ -1929,7 +1929,7 @@ mod tests {
true,
None,
platform_version,
Some(&EPOCH_CHANGE_FEE_VERSION_TEST),
None,
)
.expect("should create document");

Expand Down

0 comments on commit 1ef064e

Please sign in to comment.