diff --git a/agent/runner/actions/mongodb_query_admincommand_action_test.go b/agent/runner/actions/mongodb_query_admincommand_action_test.go index 38d9afd4f6..d09c5f461a 100644 --- a/agent/runner/actions/mongodb_query_admincommand_action_test.go +++ b/agent/runner/actions/mongodb_query_admincommand_action_test.go @@ -249,7 +249,7 @@ func getCmdLineOptsAssertionsWithAuth(t *testing.T, b []byte) { //nolint:thelper assert.Equal(t, "enabled", security.Get("authorization").String()) argv := objxM.Get("argv").InterSlice() - for _, v := range []interface{}{"mongod", "--profile", "2", "--auth"} { + for _, v := range []interface{}{"mongod", "--profile=2", "--auth"} { assert.Contains(t, argv, v) } }