From b5cb942acb23a9b12f19ec3971ce2e8f7c574797 Mon Sep 17 00:00:00 2001 From: Yann Hodique Date: Thu, 3 Sep 2015 07:19:01 -0700 Subject: [PATCH] datasource/vmware: fix assertion we definitely don't always want nil --- datasource/vmware/vmware_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)