github.com/TeaOSLab/EdgeNode@v1.3.8/internal/nodes/origin_state_manager_test.go (about)

     1  // Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
     2  
     3  package nodes
     4  
     5  import "testing"
     6  
     7  func TestOriginManager_Loop(t *testing.T) {
     8  	var manager = NewOriginStateManager()
     9  	err := manager.Loop()
    10  	if err != nil {
    11  		t.Fatal(err)
    12  	}
    13  
    14  	t.Log(manager.stateMap)
    15  }