mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-24 23:29:57 +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)
|
|
}
|
|
}
|