Skip to content

Commit

Permalink
Use skipf instead of skip + sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
the-nando committed Dec 14, 2023
1 parent 53d52ba commit 9908b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomad/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func testCheckVersion(t *testing.T, versionCheck func(version.Version) bool) {
t.Skip("could not parse node version: ", err)
} else {
if !versionCheck(*version) {
t.Skip(fmt.Sprintf("node version '%v' not appropriate for test", version.String()))
t.Skipf("node version '%v' not appropriate for test", version.String())
}
}
} else {
Expand Down

0 comments on commit 9908b6a

Please sign in to comment.