Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 321 Bytes
package main
import (
"testing"
)
func TestMachineId(t *testing.T) {
firstId, err := getMachineID()
if err != nil {
t.Error(err)
}
secondId, err := getMachineID()
if err != nil {
t.Error(err)
}
if firstId != secondId {
t.Log("Expected to get two identical machine IDs, got different")
t.Fail()
}
}
You can’t perform that action at this time.