From 7db4ee112242957289e1f5233723866fa99a3ad0 Mon Sep 17 00:00:00 2001 From: Indradhanush Gupta Date: Mon, 29 Jan 2018 11:36:55 +0100 Subject: [PATCH] rkt_test.go: Remove underscore from variable names --- client/driver/rkt_test.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/client/driver/rkt_test.go b/client/driver/rkt_test.go index 3b4646dbf..4fd5057d3 100644 --- a/client/driver/rkt_test.go +++ b/client/driver/rkt_test.go @@ -30,17 +30,17 @@ func TestRktVersionRegex(t *testing.T) { t.Skip("NOMAD_TEST_RKT unset, skipping") } - input_rkt := "rkt version 0.8.1" - input_appc := "appc version 1.2.0" - expected_rkt := "0.8.1" - expected_appc := "1.2.0" - rktMatches := reRktVersion.FindStringSubmatch(input_rkt) - appcMatches := reAppcVersion.FindStringSubmatch(input_appc) - if rktMatches[1] != expected_rkt { - fmt.Printf("Test failed; got %q; want %q\n", rktMatches[1], expected_rkt) + inputRkt := "rkt version 0.8.1" + inputAppc := "appc version 1.2.0" + expectedRkt := "0.8.1" + expectedAppc := "1.2.0" + rktMatches := reRktVersion.FindStringSubmatch(inputRkt) + appcMatches := reAppcVersion.FindStringSubmatch(inputAppc) + if rktMatches[1] != expectedRkt { + fmt.Printf("Test failed; got %q; want %q\n", rktMatches[1], expectedRkt) } - if appcMatches[1] != expected_appc { - fmt.Printf("Test failed; got %q; want %q\n", appcMatches[1], expected_appc) + if appcMatches[1] != expectedAppc { + fmt.Printf("Test failed; got %q; want %q\n", appcMatches[1], expectedAppc) } }