From 8647a1d84bc279a2c3633175e0b9ae870bc010ab Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Mon, 12 Oct 2020 15:59:50 +1100 Subject: [PATCH] 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)?) --- cid_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cid_test.go b/cid_test.go index 16008d0..74797c9 100644 --- a/cid_test.go +++ b/cid_test.go @@ -449,7 +449,7 @@ func TestParse(t *testing.T) { return err } 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() if actual != expected { -- GitLab