File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -606,16 +606,16 @@ class IngestorTests: AppTestCase {
606
606
607
607
// test lookup when package is in the index
608
608
let fork = await getFork ( on: app. db, parent: . init( url: " https://github.com/foo/parent.git " ) )
609
- XCTAssertEqual ( fork, . parentId( . id0) )
610
-
609
+ XCTAssertEqual ( fork, . parentId( id : . id0, fallbackURL : " https://github.com/foo/parent.git " ) )
610
+
611
611
// test lookup when package is in the index but with different case in URL
612
612
let fork2 = await getFork ( on: app. db, parent: . init( url: " https://github.com/Foo/Parent.git " ) )
613
- XCTAssertEqual ( fork2, . parentId( . id0) )
614
-
613
+ XCTAssertEqual ( fork2, . parentId( id : . id0, fallbackURL : " https://github.com/Foo/Parent.git " ) )
614
+
615
615
// test whem metadata repo url doesn't have `.git` at end
616
616
let fork3 = await getFork ( on: app. db, parent: . init( url: " https://github.com/Foo/Parent " ) )
617
- XCTAssertEqual ( fork3, . parentId( . id0) )
618
-
617
+ XCTAssertEqual ( fork3, . parentId( id : . id0, fallbackURL : " https://github.com/Foo/Parent.git " ) )
618
+
619
619
// test lookup when package is not in the index
620
620
let fork4 = await getFork ( on: app. db, parent: . init( url: " https://github.com/some/other.git " ) )
621
621
XCTAssertEqual ( fork4, . parentURL( " https://github.com/some/other.git " ) )
You can’t perform that action at this time.
0 commit comments