From 2379375d663926ad956ffa3fce7a9a0deb552a67 Mon Sep 17 00:00:00 2001 From: Philemon Ukane Date: Sat, 22 Feb 2025 08:47:13 +0100 Subject: [PATCH] update TestStatusPageResponseCodes --- cmd/dcrdata/internal/explorer/explorerroutes_test.go | 3 +++ cmd/dcrdata/main.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/dcrdata/internal/explorer/explorerroutes_test.go b/cmd/dcrdata/internal/explorer/explorerroutes_test.go index 2f1c36615..d3ce6f2e1 100644 --- a/cmd/dcrdata/internal/explorer/explorerroutes_test.go +++ b/cmd/dcrdata/internal/explorer/explorerroutes_test.go @@ -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" ) @@ -71,6 +72,8 @@ func TestStatusPageResponseCodes(t *testing.T) { TestnetLink: "/", }) + exp.SetStatus(new(apitypes.Status)) + // handler := http.HandlerFunc() // handler.ServeHTTP(rr, req) diff --git a/cmd/dcrdata/main.go b/cmd/dcrdata/main.go index 217dc2186..58cb6f763 100644 --- a/cmd/dcrdata/main.go +++ b/cmd/dcrdata/main.go @@ -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)