Merge pull request #382 from sigma/t/fix/assertion
datasource/vmware: fix assertion
This commit is contained in:
commit
94f8e00054
@ -171,7 +171,7 @@ func TestFetchUserdata(t *testing.T) {
|
|||||||
v := vmware{tt.variables.ReadConfig}
|
v := vmware{tt.variables.ReadConfig}
|
||||||
userdata, err := v.FetchUserdata()
|
userdata, err := v.FetchUserdata()
|
||||||
if !reflect.DeepEqual(tt.err, err) {
|
if !reflect.DeepEqual(tt.err, err) {
|
||||||
t.Errorf("bad error (#%d): want %v, got %v", i, nil, err)
|
t.Errorf("bad error (#%d): want %v, got %v", i, tt.err, err)
|
||||||
}
|
}
|
||||||
if tt.userdata != string(userdata) {
|
if tt.userdata != string(userdata) {
|
||||||
t.Errorf("bad userdata (#%d): want %q, got %q", i, tt.userdata, userdata)
|
t.Errorf("bad userdata (#%d): want %q, got %q", i, tt.userdata, userdata)
|
||||||
|
Loading…
Reference in New Issue
Block a user