Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c547ee4

Browse files
committedNov 11, 2021
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
 

‎internal/project/projectdata/packageindex_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ func TestInitializeForPackageIndex(t *testing.T) {
397397
},
398398
{
399399
ID: "foopackager2:megaavr@1.0.0 >> 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:megaavr@1.0.0 >> 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)
Please sign in to comment.