aboutsummaryrefslogtreecommitdiff
path: root/hotline/server_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'hotline/server_test.go')
-rw-r--r--hotline/server_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hotline/server_test.go b/hotline/server_test.go
index 4bb3669..bebde8f 100644
--- a/hotline/server_test.go
+++ b/hotline/server_test.go
@@ -759,9 +759,9 @@ func TestServer_CurrentStats(t *testing.T) {
srv := &Server{Stats: stats}
result := srv.CurrentStats()
- assert.Equal(t, 1, result["CurrentlyConnected"])
- assert.Equal(t, 2, result["DownloadCounter"])
- assert.Equal(t, 0, result["UploadsInProgress"])
+ assert.Equal(t, 1, result.CurrentlyConnected)
+ assert.Equal(t, 2, result.DownloadCounter)
+ assert.Equal(t, 0, result.UploadsInProgress)
}
func TestServer_sendTransaction(t *testing.T) {