Browse Source

Merge pull request #102 from rauls5382/master

More govet fixes
Raul Silvera 8 years ago
parent
commit
dec22b42d9
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      internal/driver/fetch_test.go

+ 2
- 2
internal/driver/fetch_test.go View File

74
 			},
74
 			},
75
 		}
75
 		}
76
 		s := &source{}
76
 		s := &source{}
77
-		locateBinaries(p, s, obj, &proftest.TestUI{t, tc.msgCount})
77
+		locateBinaries(p, s, obj, &proftest.TestUI{T: t, Ignore: tc.msgCount})
78
 		if file := p.Mapping[0].File; file != tc.want {
78
 		if file := p.Mapping[0].File; file != tc.want {
79
 			t.Errorf("%s:%s:%s, want %s, got %s", tc.env, tc.file, tc.buildID, tc.want, file)
79
 			t.Errorf("%s:%s:%s, want %s, got %s", tc.env, tc.file, tc.buildID, tc.want, file)
80
 		}
80
 		}
176
 		{path + "go.nomappings.crash", "/bin/gotest.exe"},
176
 		{path + "go.nomappings.crash", "/bin/gotest.exe"},
177
 		{"http://localhost/profile?file=cppbench.cpu", ""},
177
 		{"http://localhost/profile?file=cppbench.cpu", ""},
178
 	} {
178
 	} {
179
-		p, _, _, err := grabProfile(&source{ExecName: tc.execName}, tc.source, 0, nil, testObj{}, &proftest.TestUI{t, 0})
179
+		p, _, _, err := grabProfile(&source{ExecName: tc.execName}, tc.source, 0, nil, testObj{}, &proftest.TestUI{T: t})
180
 		if err != nil {
180
 		if err != nil {
181
 			t.Fatalf("%s: %s", tc.source, err)
181
 			t.Fatalf("%s: %s", tc.source, err)
182
 		}
182
 		}