Skip to content

Commit fd14da5

Browse files
author
Nexus
committed
fix: add GlobalState variable for state tests
1 parent 3b93ee0 commit fd14da5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/state.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ const (
2020
defaultCheckTimeMinutes = 10
2121
)
2222

23+
// GlobalState is a global instance of ServerStateInfo for testing
24+
var GlobalState = NewServerStateInfo()
25+
2326
// NewServerStateInfo return ServerStateInfo which is init
2427
func NewServerStateInfo() *ServerStateInfo {
2528
state := &ServerStateInfo{

0 commit comments

Comments
 (0)