File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ package openmvs_test
3
3
import (
4
4
"errors"
5
5
"fmt"
6
- "os"
7
- "strconv"
8
6
"testing"
9
7
10
8
"github.com/2024-dissertation/openmvgo/mocks"
@@ -414,20 +412,10 @@ func TestNewOpenMVSService_Success(t *testing.T) {
414
412
415
413
mockUtils := mocks .NewMockOpenmvgoUtilsInterface (ctrl )
416
414
417
- maxThreads := os .Getenv ("MAX_THREADS" )
418
- if maxThreads == "" {
419
- maxThreads = "4"
420
- }
421
-
422
- maxThreadsInt , err := strconv .Atoi (maxThreads )
423
- if err != nil {
424
- maxThreadsInt = 4
425
- }
426
-
427
415
config := & openmvs.OpenMVSConfig {
428
416
OutputDir : "/path/to/output" ,
429
417
BuildDir : "/path/to/build" ,
430
- MaxThreads : maxThreadsInt ,
418
+ MaxThreads : 4 ,
431
419
}
432
420
433
421
mockUtils .EXPECT ().EnsureDir (config .OutputDir ).Return (nil )
You can’t perform that action at this time.
0 commit comments