Skip to content

Commit cbe03f7

Browse files
aitapben-schwen
andcommitted
Fix test
Use test data that is more likely to reproduce the crash. Fix the number of threads, too. Co-Authored-By: Benjamin Schwendinger <[email protected]>
1 parent f8114db commit cbe03f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/tests/tests.Rraw

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21115,5 +21115,5 @@ DF = structure(list(a = 1:2), class = c("data.frame", "no.reset"), row.names = c
2111521115
test(2310.01, as.data.table(DF), data.table(a=1:2))
2111621116

2111721117
# avoid translateChar*() in OpenMP threads, #6883
21118-
DF = list(rep(iconv(strrep("\uf8", 100), from = "UTF-8", to = "latin1"), 100000))
21119-
test(2311, fwrite(DF, nullfile(), encoding = "UTF-8"), NULL)
21118+
DF = list(rep(iconv("\uf8", from = "UTF-8", to = "latin1"), 2e6))
21119+
test(2311, fwrite(DF, nullfile(), encoding = "UTF-8", nThread = 2L), NULL)

0 commit comments

Comments
 (0)