Skip to content

Commit

Permalink
IC2-69: rename files according to go convention (icon-project#22)
Browse files Browse the repository at this point in the history
* rename timerCache_test.go to timercache_test.go
  • Loading branch information
inwonkim authored Jan 26, 2021
1 parent f03ab4f commit 5ad3c2d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestTimerCache(t *testing.T) {
tree := trie_manager.NewMutableForObject(database, nil, icobject.ObjectType)
oss := icobject.NewObjectStoreState(tree)

tc := newTimerCache(oss,testTimerDictPrefix)
tc := newTimerCache(oss, testTimerDictPrefix)
timer := newTimer(100)
addr := common.NewAddressFromString("hx1")
// add address to timer 100
Expand All @@ -41,7 +41,6 @@ func TestTimerCache(t *testing.T) {
o = tc.dict.Get(100)
assert.NotNil(t, o)


timer = newTimer(110)
addr = common.NewAddressFromString("hx2")
timer.Add(addr)
Expand Down Expand Up @@ -79,7 +78,6 @@ func TestTimerCache(t *testing.T) {
assert.Equal(t, 0, len(tc.timers))

// but, it can recover specific item, using Get()
timer= tc.Get(110)
timer = tc.Get(110)
assert.NotNil(t, timer)
}

0 comments on commit 5ad3c2d

Please sign in to comment.