From 34d8e72a86dac2600083cb3cbccc8e9a4ab675c9 Mon Sep 17 00:00:00 2001 From: Sunny Date: Tue, 29 Aug 2017 18:56:00 +0530 Subject: [PATCH] root_analyzer_test: correct message var placement --- cmd/dep/root_analyzer_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/dep/root_analyzer_test.go b/cmd/dep/root_analyzer_test.go index 0a4e47be3f..25b1467ca9 100644 --- a/cmd/dep/root_analyzer_test.go +++ b/cmd/dep/root_analyzer_test.go @@ -183,7 +183,7 @@ func TestIsVersion(t *testing.T) { } if testcase.wantVersion != gotVersion { - t.Fatalf("unexpected version for %s: \n\t(GOT) %v \n\t(WNT) %v", value, testcase.wantVersion, gotVersion) + t.Fatalf("unexpected version for %s: \n\t(GOT) %v \n\t(WNT) %v", value, gotVersion, testcase.wantVersion) } }) } @@ -278,13 +278,13 @@ func validateConvertTestCase(testCase *convertTestCase, manifest *dep.Manifest, if gotRevision != testCase.wantRevision { return errors.Errorf("unexpected locked revision : \n\t(GOT) %v \n\t(WNT) %v", - testCase.wantRevision, - gotRevision) + gotRevision, + testCase.wantRevision) } if gotVersion != testCase.wantVersion { return errors.Errorf("unexpected locked version: \n\t(GOT) %v \n\t(WNT) %v", - testCase.wantVersion, - gotVersion) + gotVersion, + testCase.wantVersion) } } return nil