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") } }