File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -530,6 +530,7 @@ func TestGetRelationship(test *testing.T) {
530
530
if err != nil {
531
531
test .Errorf ("Error writing to file" )
532
532
}
533
+
533
534
relationship = * relationship .Get (0 )
534
535
if relationship .GetId () != 0 {
535
536
test .Errorf ("Id value mismatch" )
@@ -547,8 +548,8 @@ func TestGetRelationship(test *testing.T) {
547
548
if relationship .GetFirstPreviousRelationship ().GetId () != 40 {
548
549
test .Errorf ("First previous relationship id value mismatch" )
549
550
}
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" )
552
553
}
553
554
if relationship .GetFirstNextRelationship ().GetId () != 10 {
554
555
test .Errorf ("First next relationship id value mismatch" )
You can’t perform that action at this time.
0 commit comments