fix: Adjust the tests

Signed-off-by: Pascal Zimmermann <pascal.zimmermann@theiotstudio.com>
This commit is contained in:
Pascal Zimmermann
2026-02-16 20:20:15 +01:00
parent e43fe47fb0
commit 9b0eedd3f1
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ labels:
t.Run(tt.name, func(t *testing.T) {
err := yaml.Unmarshal([]byte(tt.content), tt.tmpl)
if tt.wantErr != "" {
assert.EqualError(t, err, tt.wantErr)
assert.ErrorContains(t, err, tt.wantErr)
} else {
assert.NoError(t, err)
assert.Equal(t, tt.want, tt.tmpl)