From ed699990a0187d6d27ec1546f9f848d4d11f9a15 Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Fri, 11 Oct 2024 12:05:05 +0800 Subject: [PATCH] Fix test --- tests/testthat/test-entity_update.R | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/testthat/test-entity_update.R b/tests/testthat/test-entity_update.R index a5eedf11..4dbdb271 100644 --- a/tests/testthat/test-entity_update.R +++ b/tests/testthat/test-entity_update.R @@ -36,6 +36,11 @@ test_that("entity_update works", { ) testthat::expect_equal(eu$current_version$data$details, details_1) + testthat::expect_equal( + ed$current_version$version, + eu$current_version$baseVersion + ) + # Interlude: entity_changes after update 1 ec_1 <- entity_changes(did = did, eid = en$uuid[1]) testthat::expect_gt(length(ec_1), 0) @@ -53,11 +58,6 @@ test_that("entity_update works", { ec_2 <- entity_changes(did = did, eid = en$uuid[1]) testthat::expect_gt(length(ec_2), length(ec_1)) - testthat::expect_equal( - ed$current_version$version, - eu$current_version$baseVersion - ) - # Test entity_versions without conflicts flag ev <- entity_versions(did = did, eid = en$uuid[1])