Skip to content

Commit 28eeeba

Browse files
committed
Change assertion for taintable objects
1 parent 09a4c95 commit 28eeeba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dd-java-agent/agent-iast/src/test/groovy/com/datadog/iast/propagation/StringModuleTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ class StringModuleTest extends IastModuleImplTestBase {
13371337
13381338
then:
13391339
1 * tracer.activeSpan() >> span
1340-
taintFormat(result, taintedObject.getRanges()) == "==>" + param.toString() + "<=="
1340+
taintFormat(result, taintedObject.getRanges()) == "==>my_input<=="
13411341
}
13421342
13431343
void 'test valueOf with special objects and make sure IastRequestContext is called'() {
@@ -1411,7 +1411,7 @@ class StringModuleTest extends IastModuleImplTestBase {
14111411
14121412
@Override
14131413
String toString() {
1414-
return Taintable.name
1414+
return "my_input"
14151415
}
14161416
}
14171417
}

0 commit comments

Comments
 (0)