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:
parent
b18006fe3f
commit
7b1a4eaef9
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue