diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91f8646e8..6c96620af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -299,7 +299,12 @@ jobs: - run: mkdir -p /tmp/corso-testlog - - name: one test + - name: all tests + env: + # Set these to a bad value so we don't accidentally fall back to + # something elsewhere. + CORSO_M365_TEST_USER_ID: "foo" + CORSO_SECONDARY_M365_TEST_USER_ID: "foo" run: | set -euo pipefail @@ -311,45 +316,9 @@ jobs: -failfast \ -p 1 \ -timeout 20m \ - -run '^TestSharePointBackupUnitSuite/TestPopulateListsCollections_incremental$' ./internal/m365/collection/site \ + ./... \ 2>&1 | tee -a /tmp/corso-testlog/gotest-unit.log - # Run the second test - go test \ - -tags testing \ - -failfast \ - -p 1 \ - -timeout 20m \ - -run '^TestSharePointBackupUnitSuite/TestCollectLists$' ./internal/m365/collection/site \ - 2>&1 | tee -a /tmp/corso-testlog/gotest-unit.log - - # Run the third test - go test \ - -tags testing \ - -failfast \ - -p 1 \ - -timeout 20m \ - -run '^TestExportUnitSuite/TestStreamItems$' ./internal/m365/collection/site \ - 2>&1 | tee -a /tmp/corso-testlog/gotest-unit.log - - # - name: all tests - # env: - # # Set these to a bad value so we don't accidentally fall back to - # # something elsewhere. - # CORSO_M365_TEST_USER_ID: "foo" - # CORSO_SECONDARY_M365_TEST_USER_ID: "foo" - # run: | - # set -euo pipefail - - # # Run the first test - # go test \ - # -tags testing \ - # -failfast \ - # -p 1 \ - # -timeout 20m \ - # ./... \ - # 2>&1 | tee -a ./testlog/gotest-unit.log - # run the tests # - name: Unit Tests # env: diff --git a/src/pkg/path/path_test.go b/src/pkg/path/path_test.go index 0973e8e21..dce228cf8 100644 --- a/src/pkg/path/path_test.go +++ b/src/pkg/path/path_test.go @@ -721,23 +721,3 @@ func (suite *PathUnitSuite) TestArePathsEquivalent() { }) } } - -func (suite *PathUnitSuite) Test_Stuff() { - t := suite.T() - - tests := []struct { - name string - path1 string - path2 string - }{ - { - name: "same linux normal path", - path1: "/path/to/dir", - path2: "/path/to/dir", - }, - } - - for _, test := range tests { - assert.Equal(t, test.path1, test.path2) - } -}