HenrikBengtsson / future.tests

:nut_and_bolt: R package: future.tests - Test Suite for Future API Backends
https://future.tests.futureverse.org
10 stars 1 forks source link

BUG: Infinite number of workers produces "invalid format '%d'; use format %f, %e, %g or %a for numeric objects" #28

Closed HenrikBengtsson closed 1 year ago

HenrikBengtsson commented 1 year ago

Issue

If nbrOfWorkers() returns +Inf, then we get errors like:

  ✖ 36. plan() - workers=<numeric> (1 test) (2ms)                                 
  ✖ lazy=FALSE, globals=TRUE, stdout=TRUE
    Error of class ‘simpleError’ with message:
    invalid format '%d'; use format %f, %e, %g or %a for numeric objects
    Call:
    sprintf("Number of workers: %d\n", n)
    Output: