@@ -43,15 +43,15 @@ func TestWorker(t *testing.T) {
4343 body2 , _ := io .ReadAll (resp2 .Body )
4444
4545 assert .Contains (t , string (body2 ), fmt .Sprintf ("Requests handled: %d" , i * 2 + 1 ))
46- }, & testOptions {workerScript : "worker.php" , nbWorkers : 1 , nbParrallelRequests : 1 })
46+ }, & testOptions {workerScript : "worker.php" , nbWorkers : 1 , nbParallelRequests : 1 })
4747}
4848
4949func TestWorkerDie (t * testing.T ) {
5050 runTest (t , func (handler func (http.ResponseWriter , * http.Request ), _ * httptest.Server , i int ) {
5151 req := httptest .NewRequest ("GET" , "http://example.com/die.php" , nil )
5252 w := httptest .NewRecorder ()
5353 handler (w , req )
54- }, & testOptions {workerScript : "die.php" , nbWorkers : 1 , nbParrallelRequests : 10 })
54+ }, & testOptions {workerScript : "die.php" , nbWorkers : 1 , nbParallelRequests : 10 })
5555}
5656
5757func TestNonWorkerModeAlwaysWorks (t * testing.T ) {
@@ -90,7 +90,7 @@ func TestWorkerEnv(t *testing.T) {
9090 body , _ := io .ReadAll (resp .Body )
9191
9292 assert .Equal (t , fmt .Sprintf ("bar%d" , i ), string (body ))
93- }, & testOptions {workerScript : "worker-env.php" , nbWorkers : 1 , env : map [string ]string {"FOO" : "bar" }, nbParrallelRequests : 10 })
93+ }, & testOptions {workerScript : "worker-env.php" , nbWorkers : 1 , env : map [string ]string {"FOO" : "bar" }, nbParallelRequests : 10 })
9494}
9595
9696func TestWorkerGetOpt (t * testing.T ) {
@@ -150,5 +150,5 @@ func TestWorkerHasOSEnvironmentVariableInSERVER(t *testing.T) {
150150
151151 assert .Contains (t , string (body ), "CUSTOM_OS_ENV_VARIABLE" )
152152 assert .Contains (t , string (body ), "custom_env_variable_value" )
153- }, & testOptions {workerScript : "worker.php" , nbWorkers : 1 , nbParrallelRequests : 1 })
153+ }, & testOptions {workerScript : "worker.php" , nbWorkers : 1 , nbParallelRequests : 1 })
154154}
0 commit comments