nomad/command: fix strings.Contains args order

Swapped call args order to meet the expected behavior.

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
This commit is contained in:
Iskander (Alex) Sharipov 2019-02-02 09:43:24 +03:00 committed by GitHub
parent b18006fe3f
commit 7b1a4eaef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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