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

     1  // Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
     2  
     3  package nodes
     4  
     5  import (
     6  	"github.com/TeaOSLab/EdgeNode/internal/utils/testutils"
     7  	_ "github.com/iwind/TeaGo/bootstrap"
     8  	"testing"
     9  )
    10  
    11  func TestUpgradeManager_install(t *testing.T) {
    12  	if !testutils.IsSingleTesting() {
    13  		return
    14  	}
    15  
    16  	err := NewUpgradeManager().install()
    17  	if err != nil {
    18  		t.Fatal(err)
    19  	}
    20  	t.Log("ok")
    21  }