Merge pull request #382 from sigma/t/fix/assertion

datasource/vmware: fix assertion
This commit is contained in:
Alex Crawford 2015-09-03 18:39:22 -07:00
commit 94f8e00054

View File

@ -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)