From 7b1a4eaef9afa5ea2bcd86f2832f8796a8e13f16 Mon Sep 17 00:00:00 2001 From: "Iskander (Alex) Sharipov" Date: Sat, 2 Feb 2019 09:43:24 +0300 Subject: [PATCH] nomad/command: fix strings.Contains args order Swapped call args order to meet the expected behavior. Signed-off-by: Iskander Sharipov --- command/job_init_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/job_init_test.go b/command/job_init_test.go index 0f898cc55..5ddac097e 100644 --- a/command/job_init_test.go +++ b/command/job_init_test.go @@ -81,7 +81,7 @@ func TestInitCommand_defaultJob(t *testing.T) { // Ensure the job file is always written with spaces instead of tabs. Since // the default job file is embedded in the go file, it's easy for tabs to // slip in. - if strings.Contains("\t", defaultJob) { + if strings.Contains(defaultJob, "\t") { t.Error("default job contains tab character - please convert to spaces") } }