Skip to content

Commit e3d1378

Browse files
committed
fix tests
1 parent a8a222d commit e3d1378

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

frankenphp_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func runTest(t *testing.T, test func(func(http.ResponseWriter, *http.Request), *
6565

6666
initOpts := []frankenphp.Option{frankenphp.WithLogger(opts.logger)}
6767
if opts.workerScript != "" {
68-
initOpts = append(initOpts, frankenphp.WithWorkers("workerName", testDataDir+opts.workerScript, opts.nbWorkers, opts.env, opts.watch))
68+
initOpts = append(initOpts, frankenphp.WithWorkers("workerName", testDataDir+opts.workerScript, opts.nbWorkers, opts.env, opts.watch, ""))
6969
}
7070
initOpts = append(initOpts, opts.initOpts...)
7171
if opts.phpIni != nil {

phpmainthread_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ func TestTransitionThreadsWhileDoingRequests(t *testing.T) {
9494

9595
assert.NoError(t, Init(
9696
WithNumThreads(numThreads),
97-
WithWorkers(worker1Name, worker1Path, 1, map[string]string{"ENV1": "foo"}, []string{}),
98-
WithWorkers(worker2Name, worker2Path, 1, map[string]string{"ENV1": "foo"}, []string{}),
97+
WithWorkers(worker1Name, worker1Path, 1, map[string]string{"ENV1": "foo"}, []string{}, ""),
98+
WithWorkers(worker2Name, worker2Path, 1, map[string]string{"ENV1": "foo"}, []string{}, ""),
9999
WithLogger(zap.NewNop()),
100100
))
101101

scaling_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func TestScaleAWorkerThreadUpAndDown(t *testing.T) {
3636
assert.NoError(t, Init(
3737
WithNumThreads(2),
3838
WithMaxThreads(3),
39-
WithWorkers(workerName, workerPath, 1, map[string]string{}, []string{}),
39+
WithWorkers(workerName, workerPath, 1, map[string]string{}, []string{}, ""),
4040
WithLogger(zap.NewNop()),
4141
))
4242

worker_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ func TestWorkerGetOpt(t *testing.T) {
119119

120120
func ExampleServeHTTP_workers() {
121121
if err := frankenphp.Init(
122-
frankenphp.WithWorkers("worker1", "worker1.php", 4, map[string]string{"ENV1": "foo"}, []string{}),
123-
frankenphp.WithWorkers("worker1", "worker2.php", 2, map[string]string{"ENV2": "bar"}, []string{}),
122+
frankenphp.WithWorkers("worker1", "worker1.php", 4, map[string]string{"ENV1": "foo"}, []string{}, ""),
123+
frankenphp.WithWorkers("worker1", "worker2.php", 2, map[string]string{"ENV2": "bar"}, []string{}, ""),
124124
); err != nil {
125125
panic(err)
126126
}

0 commit comments

Comments
 (0)