Skip to content

Commit

Permalink
update TestStatusPageResponseCodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ukane-philemon committed Feb 22, 2025
1 parent c531e3f commit 2379375
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cmd/dcrdata/internal/explorer/explorerroutes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

"github.com/decred/dcrd/chaincfg/v3"
"github.com/decred/dcrdata/db/dcrpg/v8"
apitypes "github.com/decred/dcrdata/v8/api/types"
"github.com/decred/dcrdata/v8/explorer/types"
)

Expand Down Expand Up @@ -71,6 +72,8 @@ func TestStatusPageResponseCodes(t *testing.T) {
TestnetLink: "/",
})

exp.SetStatus(new(apitypes.Status))

// handler := http.HandlerFunc()
// handler.ServeHTTP(rr, req)

Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ func _main(ctx context.Context) error {
chainDB.SignalHeight(uint32(chainDBHeight))
}

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

Expand Down

0 comments on commit 2379375

Please sign in to comment.