Skip to content

Commit

Permalink
test: testnet MetaLabels test Range header
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Kungla <marko.kungla@gmail.com>
  • Loading branch information
mkungla committed Oct 3, 2022
1 parent caf7922 commit 7580013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ func TestTxMetaLabels(t *testing.T) {

func txMetaLabelsTest(t TestingT, client *koios.Client) {
opts := client.NewRequestOptions()
opts.SetPageSize(10)
opts.SetPageSize(2) // testnet Range error if number is too big

res, err := client.GetTxMetaLabels(context.Background(), opts)
if !assert.NoError(t, err) {
return
}

assertGreater(t, len(res.Data), 2, "GetTxMetaLabels")
assertGreater(t, len(res.Data), 1, "GetTxMetaLabels")
for _, label := range res.Data {
assertNotEmpty(t, label.Key, "empty label")
}
Expand Down

0 comments on commit 7580013

Please sign in to comment.