Skip to content

Commit

Permalink
Fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Oct 1, 2023
1 parent 17f3e51 commit ea9026f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/apps/chifra/internal/list/list_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ import (

"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/globals"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/base"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/config"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/file"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/monitor"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/tslib"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/utils"
)

func Test_HandleFreshenMonitors(t *testing.T) {
_ = config.GetRootConfig()
tslib.EstablishTsFile(utils.GetTestChain(), base.GetTestPublisher())
opts := globals.GlobalOptions{}
opts.Chain = "mainnet"
Expand Down
2 changes: 2 additions & 0 deletions src/apps/chifra/pkg/tslib/tslib_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"testing"

"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/base"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/config"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/utils"
)

Expand All @@ -27,6 +28,7 @@ func TestLoadTimestampsPass(t *testing.T) {
{name: "Block 1 Mil", bn: 1000000, ts: 1455404053, date: "2016-02-13 22:54:13"},
}

_ = config.GetRootConfig()
EstablishTsFile(utils.GetTestChain(), base.GetTestPublisher())
for _, e := range expected {
bn, err := FromTsToBn(utils.GetTestChain(), e.ts)
Expand Down
2 changes: 2 additions & 0 deletions src/apps/chifra/pkg/validate/block_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ import (

"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/base"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/colors"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/config"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/identifiers"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/tslib"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/utils"
)

func Test_BlockRanges(t *testing.T) {
_ = config.GetRootConfig()
tslib.EstablishTsFile(utils.GetTestChain(), base.GetTestPublisher())
for _, item := range testBlocks {
if !item.enabled {
Expand Down

0 comments on commit ea9026f

Please sign in to comment.