@@ -750,7 +750,7 @@ func TestRunsListForOrganization(t *testing.T) {
750
750
assert .Contains (t , found , rTest1 .ID )
751
751
assert .Contains (t , found , rTest2 .ID )
752
752
assert .Equal (t , 1 , rl .CurrentPage )
753
- assert .Equal (t , 2 , rl .TotalCount )
753
+ assert .Empty (t , rl .NextPage )
754
754
})
755
755
756
756
t .Run ("without list options and include as nil" , func (t * testing.T ) {
@@ -768,7 +768,7 @@ func TestRunsListForOrganization(t *testing.T) {
768
768
assert .Contains (t , found , rTest1 .ID )
769
769
assert .Contains (t , found , rTest2 .ID )
770
770
assert .Equal (t , 1 , rl .CurrentPage )
771
- assert .Equal (t , 2 , rl .TotalCount )
771
+ assert .Empty (t , rl .NextPage )
772
772
})
773
773
774
774
t .Run ("with list options" , func (t * testing.T ) {
@@ -784,7 +784,7 @@ func TestRunsListForOrganization(t *testing.T) {
784
784
require .NoError (t , err )
785
785
assert .Empty (t , rl .Items )
786
786
assert .Equal (t , 999 , rl .CurrentPage )
787
- assert .Equal (t , 2 , rl .TotalCount )
787
+ assert .Empty (t , rl .NextPage )
788
788
})
789
789
790
790
t .Run ("with workspace included" , func (t * testing.T ) {
@@ -818,7 +818,7 @@ func TestRunsListForOrganization(t *testing.T) {
818
818
assert .Contains (t , found , rTest1 .ID )
819
819
assert .Contains (t , found , rTest2 .ID )
820
820
assert .Equal (t , 1 , rl .CurrentPage )
821
- assert .Equal (t , 2 , rl .TotalCount )
821
+ assert .Empty (t , rl .NextPage )
822
822
})
823
823
824
824
t .Run ("with filter by workspace" , func (t * testing.T ) {
@@ -840,6 +840,6 @@ func TestRunsListForOrganization(t *testing.T) {
840
840
require .NotNil (t , rl .Items [1 ].Workspace )
841
841
assert .NotEmpty (t , rl .Items [1 ].Workspace .Name )
842
842
assert .Equal (t , 1 , rl .CurrentPage )
843
- assert .Equal (t , 2 , rl .TotalCount )
843
+ assert .Empty (t , rl .NextPage )
844
844
})
845
845
}
0 commit comments