Skip to content

Commit

Permalink
Merge pull request #3145 from cblecker/fix-int-conv
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkowl authored Sep 5, 2023
2 parents 0134e40 + c2cf556 commit 04ba179
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/database/openshiftclusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func fakeOpenshiftClustersMatchQuery(client cosmosdb.OpenShiftClusterDocumentCli
results = append(results, r)
}
}
return cosmosdb.NewFakeOpenShiftClusterDocumentIterator(results, int(startingIndex))
return cosmosdb.NewFakeOpenShiftClusterDocumentIterator(results, startingIndex)
}

func fakeOpenShiftClustersGetAllDocuments(client cosmosdb.OpenShiftClusterDocumentClient) ([]*api.OpenShiftClusterDocument, error) {
Expand All @@ -109,9 +109,9 @@ func fakeOpenShiftClustersGetAllDocuments(client cosmosdb.OpenShiftClusterDocume
return docs, nil
}

func fakeOpenShiftClustersGetContinuation(options *cosmosdb.Options) (startingIndex int64, err error) {
func fakeOpenShiftClustersGetContinuation(options *cosmosdb.Options) (startingIndex int, err error) {
if options != nil && options.Continuation != "" {
startingIndex, err = strconv.ParseInt(options.Continuation, 10, 64)
startingIndex, err = strconv.Atoi(options.Continuation)
}
return
}
Expand All @@ -132,7 +132,8 @@ func fakeOpenshiftClustersPrefixQuery(client cosmosdb.OpenShiftClusterDocumentCl
results = append(results, r)
}
}
return cosmosdb.NewFakeOpenShiftClusterDocumentIterator(results, int(startingIndex))

return cosmosdb.NewFakeOpenShiftClusterDocumentIterator(results, startingIndex)
}

func fakeOpenShiftClustersRenewLeaseTrigger(ctx context.Context, doc *api.OpenShiftClusterDocument) error {
Expand Down

0 comments on commit 04ba179

Please sign in to comment.