Skip to content

Commit 56a39ac

Browse files
supersonicbytedaveverwer
authored andcommitted
Fix tests
1 parent bb968b0 commit 56a39ac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/AppTests/IngestorTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -606,16 +606,16 @@ class IngestorTests: AppTestCase {
606606

607607
// test lookup when package is in the index
608608
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+
611611
// test lookup when package is in the index but with different case in URL
612612
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+
615615
// test whem metadata repo url doesn't have `.git` at end
616616
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+
619619
// test lookup when package is not in the index
620620
let fork4 = await getFork(on: app.db, parent: .init(url: "https://github.com/some/other.git"))
621621
XCTAssertEqual(fork4, .parentURL("https://github.com/some/other.git"))

0 commit comments

Comments
 (0)