• Tatsuhiko Kubo's avatar
    fixed test failure. · 91ac2c58
    Tatsuhiko Kubo authored
    When CPU is 1 core, expected value (int(0.5 * float32(maxCPU))) is zero.
    But runtime.GOMAXPROCS(-1) returns always 1.
    91ac2c58
main_test.go 1.07 KB