Fix x86 tests (#3317)
x86 tests broke with #3298 (Not exactly the tests modified here, but `TestMessageHistoryVisibility`)
This commit is contained in:
parent
87f028db27
commit
a3a18fbcce
2 changed files with 21 additions and 4 deletions
|
|
@ -286,8 +286,8 @@ func NewTopologyTokenFromString(tok string) (token TopologyToken, err error) {
|
|||
if i > len(positions) {
|
||||
break
|
||||
}
|
||||
var pos int
|
||||
pos, err = strconv.Atoi(p)
|
||||
var pos int64
|
||||
pos, err = strconv.ParseInt(p, 10, 64)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
|
@ -318,8 +318,8 @@ func NewStreamTokenFromString(tok string) (token StreamingToken, err error) {
|
|||
if i >= len(positions) {
|
||||
break
|
||||
}
|
||||
var pos int
|
||||
pos, err = strconv.Atoi(p)
|
||||
var pos int64
|
||||
pos, err = strconv.ParseInt(p, 10, 64)
|
||||
if err != nil {
|
||||
err = ErrMalformedSyncToken
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue