mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-21 00:24:07 +08:00
15 lines
189 B
Go
15 lines
189 B
Go
package nodeid
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestGetNodeId(t *testing.T) {
|
|
idstr, err := GetNodeId()
|
|
if err != nil {
|
|
t.Errorf("error %s", err)
|
|
} else {
|
|
t.Logf("ID is %s", idstr)
|
|
}
|
|
}
|