fix: make tests run with Go 1.15
> ./cid_test.go:451:52: conversion from uint64 to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
This commit is contained in:
@@ -449,7 +449,7 @@ func TestParse(t *testing.T) {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if cid.Version() != 0 {
|
if cid.Version() != 0 {
|
||||||
return fmt.Errorf("expected version 0, got %s", string(cid.Version()))
|
return fmt.Errorf("expected version 0, got %s", fmt.Sprintf("%d", cid.Version()))
|
||||||
}
|
}
|
||||||
actual := cid.Hash().B58String()
|
actual := cid.Hash().B58String()
|
||||||
if actual != expected {
|
if actual != expected {
|
||||||
|
|||||||
Reference in New Issue
Block a user