fix lint errors.

This commit is contained in:
Raúl Kripalani 2020-10-15 12:14:16 +01:00
parent 45cd510da1
commit 4e659e30c5
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ func TestProtocolCodenames(t *testing.T) {
t.Fatal("expected breeze codename")
}
if height := abi.ChainEpoch(build.UpgradeActorsV2Height + 1); GetProtocolCodename(height) != "actorsv2" {
if height := build.UpgradeActorsV2Height + 1; GetProtocolCodename(height) != "actorsv2" {
t.Fatal("expected actorsv2 codename")
}

View File

@ -76,7 +76,7 @@ func executeTestVector(tv schema.TestVector) error {
for _, v := range tv.Pre.Variants {
r := new(conformance.LogReporter)
switch class := tv.Class; class {
switch class, v := tv.Class, v; class {
case "message":
conformance.ExecuteMessageVector(r, &tv, &v)
case "tipset":