mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
abi_cache/cache_test.go: Minor code niceness fix.
This commit is contained in:
parent
f00b755e00
commit
9d3d5bbafd
1 changed files with 3 additions and 9 deletions
|
|
@ -81,19 +81,13 @@ func TestGetSet(t *testing.T) {
|
|||
})
|
||||
|
||||
abi, err := eos.NewABI(strings.NewReader(abiString))
|
||||
if err != nil {
|
||||
t.Error("Failed to build ABI", err)
|
||||
}
|
||||
assert.NoError(t, err)
|
||||
|
||||
err = c.Set("testaccount", abi, time.Minute)
|
||||
if err != nil {
|
||||
t.Error("Failed to set cache item", err)
|
||||
}
|
||||
assert.NoError(t, err)
|
||||
|
||||
c_abi, err := c.Get("testaccount")
|
||||
if err != nil {
|
||||
t.Error("Failed to get cache item", err)
|
||||
}
|
||||
assert.NoError(t, err)
|
||||
|
||||
assert.Equal(t, c_abi.Version, "eosio::abi/1.0")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue