diff --git a/datasource/vmware/vmware_test.go b/datasource/vmware/vmware_test.go index 8ef5399..d278991 100644 --- a/datasource/vmware/vmware_test.go +++ b/datasource/vmware/vmware_test.go @@ -171,7 +171,7 @@ func TestFetchUserdata(t *testing.T) { v := vmware{tt.variables.ReadConfig} userdata, err := v.FetchUserdata() 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) { t.Errorf("bad userdata (#%d): want %q, got %q", i, tt.userdata, userdata)