Skip to content

Commit 6ef634f

Browse files
authored
fix: SDA tests (#474)
- out of cycle refresh changed record count
1 parent 7587460 commit 6ef634f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/testthat/test-SDA_query.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ test_that("SDA_query() works with multi-line records", {
287287

288288
# https://github.com/ncss-tech/soilDB/issues/28
289289
expect_true(inherits(x.4, 'data.frame'))
290-
expect_true(nrow(x.4) == 7)
290+
expect_equal(nrow(x.4), 6)
291291

292292
})
293293

tests/testthat/test-get_SDA_property.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ test_that("SDA properties (weighted average) works", {
192192
mukeys = 545857)
193193
skip_if(inherits(agg, 'try-error'))
194194
skip_if(inherits(noagg, 'try-error'))
195-
195+
196+
skip_if_not_installed("aqp")
197+
196198
aqp::depths(noagg) <- cokey ~ hzdept_r + hzdepb_r
197199
aqp::site(noagg) <- ~ comppct_r
198200

0 commit comments

Comments
 (0)