Commit 8647a1d8 authored by Rod Vagg's avatar Rod Vagg

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)?)
parent de498491
...@@ -449,7 +449,7 @@ func TestParse(t *testing.T) { ...@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment