Skip to content

Commit 6f5b17c

Browse files
committed
Update unit tests
1 parent 0c07d02 commit 6f5b17c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/pkg/otel/run_nofips_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TestStartCollector(t *testing.T) {
2727
},
2828
{
2929
configFile: "nonexistent-component.yml",
30-
expectedErrorMessage: `error decoding 'extensions': unknown type: "zpages"`,
30+
expectedErrorMessage: `'extensions' unknown type: "zpages"`,
3131
},
3232
}
3333

pkg/component/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func TestExpectedConfig(t *testing.T) {
183183
},
184184
},
185185
},
186-
Err: errors.New("decoding error: decoding failed due to the following error(s):\n\n'meta' expected a map, got 'slice'"),
186+
Err: errors.New("decoding error: decoding failed due to the following error(s):\n\n'meta' expected a map or struct, got \"slice\""),
187187
},
188188
}
189189

0 commit comments

Comments
 (0)