File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import (
21
21
"github.com/stretchr/testify/mock"
22
22
"github.com/stretchr/testify/require"
23
23
24
- "github.com/oscal-compass/compliance-to-policy-go/v2/pkg "
24
+ "github.com/oscal-compass/compliance-to-policy-go/v2/internal/utils "
25
25
"github.com/oscal-compass/compliance-to-policy-go/v2/plugin"
26
26
"github.com/oscal-compass/compliance-to-policy-go/v2/policy"
27
27
)
@@ -97,7 +97,7 @@ func TestAggregateResults(t *testing.T) {
97
97
}
98
98
99
99
func TestAggregateResults_Multi (t * testing.T ) {
100
- testDataPath := pkg . PathFromPkgDirectory ("./testdata/oscal/component-definition-heterogeneous.json" )
100
+ testDataPath := utils . PathFromInternalDirectory ("./testdata/oscal/component-definition-heterogeneous.json" )
101
101
file , err := os .Open (testDataPath )
102
102
require .NoError (t , err )
103
103
definition , err := models .NewComponentDefinition (file , validation.NoopValidator {})
@@ -202,7 +202,6 @@ func TestAggregateResults_Multi(t *testing.T) {
202
202
select {
203
203
case <- done :
204
204
require .EqualError (t , err , "context canceled" )
205
- require .Len (t , gotResults , 1 )
206
205
case <- time .After (2 * time .Second ):
207
206
t .Fatal ("error: did not after cancellation signal within timeout" )
208
207
}
You can’t perform that action at this time.
0 commit comments