Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

kola/tests: add test for MachineID #805

Merged
merged 1 commit into from
Feb 2, 2018
Merged

Conversation

arithx
Copy link
Contributor

@arithx arithx commented Feb 2, 2018

Fixes #568

func TestMachineID() error {
id := MachineID()
if id == "" || id == "COREOS_BLANK_MACHINE_ID" {
return fmt.Errorf("machine-id is %s", id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd split this into two if's becuase if it is an empty string this will be a very confusing error.

@arithx
Copy link
Contributor Author

arithx commented Feb 2, 2018

Updated

Copy link
Contributor

@ajeddeloh ajeddeloh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arithx arithx merged commit 80a3497 into coreos:master Feb 2, 2018
@arithx arithx deleted the machineid branch February 2, 2018 00:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants