Skip to content

Commit 2379375

Browse files
update TestStatusPageResponseCodes
1 parent c531e3f commit 2379375

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

cmd/dcrdata/internal/explorer/explorerroutes_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77

88
"github.com/decred/dcrd/chaincfg/v3"
99
"github.com/decred/dcrdata/db/dcrpg/v8"
10+
apitypes "github.com/decred/dcrdata/v8/api/types"
1011
"github.com/decred/dcrdata/v8/explorer/types"
1112
)
1213

@@ -71,6 +72,8 @@ func TestStatusPageResponseCodes(t *testing.T) {
7172
TestnetLink: "/",
7273
})
7374

75+
exp.SetStatus(new(apitypes.Status))
76+
7477
// handler := http.HandlerFunc()
7578
// handler.ServeHTTP(rr, req)
7679

cmd/dcrdata/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ func _main(ctx context.Context) error {
651651
chainDB.SignalHeight(uint32(chainDBHeight))
652652
}
653653

654-
// Set explore status. This will enable tracking wheter or not we are still
654+
// Set explore status. This will enable tracking whether or not we are still
655655
// connected to a node.
656656
explore.SetStatus(app.Status)
657657

0 commit comments

Comments
 (0)