Skip to content

Commit c547ee4

Browse files
committed
Fix errors in package index project data test assertions
There were some typos in the test tables data for the discoveryDependencies components of the package index project data unit tests. Due to missing handling code for this part of the tables, the errors were not apparent. Once the handling code was added, they caused spurious test failures, which are fixed here.
1 parent 26e2198 commit c547ee4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: internal/project/projectdata/packageindex_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ func TestInitializeForPackageIndex(t *testing.T) {
397397
},
398398
{
399399
ID: "foopackager2:[email protected] >> quxpackager:sneakernet-discovery",
400-
JSONPointer: "/packages/1/platforms/2/discoveryDependencies/3",
400+
JSONPointer: "/packages/1/platforms/2/discoveryDependencies/2",
401401
},
402402
},
403403
packageIndexToolsAssertion: assert.NotNil,
@@ -618,7 +618,7 @@ func TestInitializeForPackageIndex(t *testing.T) {
618618
},
619619
{
620620
ID: "foopackager2:[email protected] >> quxpackager:sneakernet-discovery",
621-
JSONPointer: "/packages/1/platforms/2/discoveryDependencies/3",
621+
JSONPointer: "/packages/1/platforms/2/discoveryDependencies/2",
622622
},
623623
},
624624
packageIndexToolsAssertion: assert.NotNil,

0 commit comments

Comments
 (0)