Skip to content

Commit 56ecfaf

Browse files
committed
Test fix
1 parent 55f7eaf commit 56ecfaf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/app/core/core_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ func TestGetRelationship(test *testing.T) {
530530
if err != nil {
531531
test.Errorf("Error writing to file")
532532
}
533+
533534
relationship = *relationship.Get(0)
534535
if relationship.GetId() != 0 {
535536
test.Errorf("Id value mismatch")
@@ -547,8 +548,8 @@ func TestGetRelationship(test *testing.T) {
547548
if relationship.GetFirstPreviousRelationship().GetId() != 40 {
548549
test.Errorf("First previous relationship id value mismatch")
549550
}
550-
if relationship.GetSecondPreviousRelationship().GetId() != -1 {
551-
test.Errorf("Second previous relationship id value mismatch")
551+
if relationship.GetSecondPreviousRelationship() != nil {
552+
test.Errorf("Second previous relationship value mismatch")
552553
}
553554
if relationship.GetFirstNextRelationship().GetId() != 10 {
554555
test.Errorf("First next relationship id value mismatch")

0 commit comments

Comments
 (0)