File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -265,11 +265,19 @@ func loadSystemCertPool(logger logrus.FieldLogger) {
265
265
func (lct * loadedAndConfiguredTest ) buildTestRunState (
266
266
configToReinject lib.Options ,
267
267
) (* lib.TestRunState , error ) {
268
- // This might be the full derived or just the consodlidated options
268
+ // This might be the full derived or just the consolidated options
269
269
if err := lct .initRunner .SetOptions (configToReinject ); err != nil {
270
270
return nil , err
271
271
}
272
272
273
+ // Here, where we get the consolidated options, is where we check if any
274
+ // of the deprecated options is being used, and we report it.
275
+ if _ , isPresent := configToReinject .External ["loadimpact" ]; isPresent {
276
+ if err := lct .preInitState .Usage .Strings ("deprecated_options" , "ext.loadimpact" ); err != nil {
277
+ return nil , err
278
+ }
279
+ }
280
+
273
281
// it pre-loads system certificates to avoid doing it on the first TLS request.
274
282
// This is done async to avoid blocking the rest of the loading process as it will not stop if it fails.
275
283
go loadSystemCertPool (lct .preInitState .Logger )
You can’t perform that action at this time.
0 commit comments