Skip to content

Commit 1f5bcec

Browse files
Cey feedback
1 parent 6166387 commit 1f5bcec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

params/extras/precompile_upgrade_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,15 +288,15 @@ func (tt *upgradeCompatibilityTest) run(t *testing.T, chainConfig ChainConfig) {
288288
// if this is not the final upgradeBytes, continue applying
289289
// the next upgradeBytes. (only check the result on the last apply)
290290
if i != len(tt.configs)-1 {
291-
require.NoErrorf(t, err, "expecting checkConfigCompatible call %d to return nil", i+1)
291+
require.NoError(t, err, "expecting checkConfigCompatible call %d to return nil", i+1)
292292
chainConfig = newCfg
293293
continue
294294
}
295295

296296
if tt.expectedErrorString != "" {
297297
require.ErrorContains(t, err, tt.expectedErrorString)
298298
} else {
299-
require.Nil(t, err)
299+
require.NoError(t, err, "expecting checkConfigCompatible call %d to return nil", i+1)
300300
}
301301
}
302302
}

sync/client/client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,8 @@ func TestGetLeafs(t *testing.T) {
665665
return
666666
}
667667

668-
leafsResponse, ok := response.(message.LeafsResponse)
669-
require.True(t, ok, "expected leafs response")
668+
leafsResponse := response.(message.LeafsResponse)
669+
require.IsType(t, message.LeafsResponse{}, leafsResponse, "parseLeafsResponse returned incorrect type %T", leafsResponse)
670670
test.requireResponse(t, leafsResponse)
671671
})
672672
}

0 commit comments

Comments
 (0)