Skip to content

Commit

Permalink
[sky] refs #139 - Adjust test comparing params.DataRefreshTimeout vs …
Browse files Browse the repository at this point in the history
…SkycoinBlockchain.CacheTime
  • Loading branch information
olemis committed Mar 4, 2020
1 parent 4916a2a commit 40513b2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/coin/skycoin/models/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ import (
"sort"
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/fibercrypto/fibercryptowallet/src/coin/mocks"
"github.com/fibercrypto/fibercryptowallet/src/core"
util "github.com/fibercrypto/fibercryptowallet/src/util"
"github.com/fibercrypto/fibercryptowallet/src/params"
util "github.com/fibercrypto/fibercryptowallet/src/util"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)


//Prepare the mock API for all test
func TestMain(m *testing.M) {
if global_mock == nil {
Expand Down Expand Up @@ -139,7 +138,7 @@ func TestSkyFiberPluginNetOperations(t *testing.T) {
require.Nil(t, err1)
require.IsType(t, new(SkycoinBlockchain), api)
sAPI := api.(*SkycoinBlockchain)
require.Equal(t, uint64(params.DataRefreshTimeout*1000000000), sAPI.CacheTime)
require.Equal(t, uint64(params.DataRefreshTimeout*10000), sAPI.CacheTime)
})
}

Expand Down

0 comments on commit 40513b2

Please sign in to comment.