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:
Rod Vagg
2020-10-12 15:59:50 +11:00
parent de49849130
commit 8647a1d84b

View File

@@ -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 {