Skip to content

Commit 87032c2

Browse files
committed
fix(integratrion_runner): Uses knowledge of php executable to simplify code
1 parent 2b140d0 commit 87032c2

File tree

1 file changed

+1
-2
lines changed
  • daemon/internal/newrelic/integration

1 file changed

+1
-2
lines changed

daemon/internal/newrelic/integration/test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ func (t *Test) MakeRun(ctx *Context) (Tx, error) {
270270
// 1. Web test and php-cgi has opcache.so loaded by default - remove any PHPMODULE spec for opcache.so
271271
// 2. PHP test and php has opcache.so loaded by default - remove any PHPMODULE spec for opcache.so
272272
phpModulesCopy := make(map[string]string)
273-
if (t.IsWeb() && ctx.OPCacheModuleLoaded[ctx.CGI]) ||
274-
(ctx.OPCacheModuleLoaded[ctx.PHP]) {
273+
if ctx.OPCacheModuleLoaded[php_executable] {
275274
for k, v := range t.PhpModules {
276275
if !strings.Contains(v, "opcache.so") {
277276
phpModulesCopy[k] = v

0 commit comments

Comments
 (0)