Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 153953d

Browse files
authored
Merge pull request #1083 from darkowlzz/root-analyzer-test-fail-messages
root_analyzer_test: correct message var placement
2 parents d230092 + 34d8e72 commit 153953d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmd/dep/root_analyzer_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func TestIsVersion(t *testing.T) {
183183
}
184184

185185
if testcase.wantVersion != gotVersion {
186-
t.Fatalf("unexpected version for %s: \n\t(GOT) %v \n\t(WNT) %v", value, testcase.wantVersion, gotVersion)
186+
t.Fatalf("unexpected version for %s: \n\t(GOT) %v \n\t(WNT) %v", value, gotVersion, testcase.wantVersion)
187187
}
188188
})
189189
}
@@ -278,13 +278,13 @@ func validateConvertTestCase(testCase *convertTestCase, manifest *dep.Manifest,
278278

279279
if gotRevision != testCase.wantRevision {
280280
return errors.Errorf("unexpected locked revision : \n\t(GOT) %v \n\t(WNT) %v",
281-
testCase.wantRevision,
282-
gotRevision)
281+
gotRevision,
282+
testCase.wantRevision)
283283
}
284284
if gotVersion != testCase.wantVersion {
285285
return errors.Errorf("unexpected locked version: \n\t(GOT) %v \n\t(WNT) %v",
286-
testCase.wantVersion,
287-
gotVersion)
286+
gotVersion,
287+
testCase.wantVersion)
288288
}
289289
}
290290
return nil

0 commit comments

Comments
 (0)