Преглед на файлове

Merge pull request #102 from rauls5382/master

More govet fixes
Raul Silvera преди 8 години
родител
ревизия
dec22b42d9
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      internal/driver/fetch_test.go

+ 2
- 2
internal/driver/fetch_test.go Целия файл

@@ -74,7 +74,7 @@ func TestSymbolizationPath(t *testing.T) {
74 74
 			},
75 75
 		}
76 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 78
 		if file := p.Mapping[0].File; file != tc.want {
79 79
 			t.Errorf("%s:%s:%s, want %s, got %s", tc.env, tc.file, tc.buildID, tc.want, file)
80 80
 		}
@@ -176,7 +176,7 @@ func TestFetch(t *testing.T) {
176 176
 		{path + "go.nomappings.crash", "/bin/gotest.exe"},
177 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 180
 		if err != nil {
181 181
 			t.Fatalf("%s: %s", tc.source, err)
182 182
 		}