Skip to content

Commit 82e1834

Browse files
committed
Fixed tests
1 parent a3c9009 commit 82e1834

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ before_script:
4141
- vendor/bin/http_test_server > /dev/null 2>&1 &
4242

4343
script:
44-
- cd ./tests/server/ssl && ./generate.sh && cd ../../../
44+
- cd ./tests/server/ssl && ./generate.sh && pwd && ls -la && cd ../../../
4545
- $TEST_COMMAND
4646
- ./vendor/bin/phpunit tests/SocketClientFeatureTest.php --printer Http\\Client\\Tests\\FeatureTestListener || echo ""
4747

tests/BaseTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function startServer($name)
1313
$filename = __DIR__ . '/server/' . $name . '.php';
1414
$pipes = [];
1515
$this->servers[$name] = proc_open('php '. $filename, [], $pipes);
16-
usleep(30000);
16+
usleep(300000);
1717
}
1818

1919
public function stopServer($name)

tests/server/ssl/file.srl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2D

tests/server/ssl/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ openssl req -key server.key -new -out server.req -subj "/C=$C/ST=$ST/L=$L/O=$O/C
1212
openssl x509 -req -in server.req -CA ca.pem -CAkey privkey.pem -CAserial file.srl -out server.pem -passin pass:password
1313

1414
openssl genrsa -out client.key 1024 -subj "/C=$C/ST=$ST/L=$L/O=$O/CN=socket-adapter-client"
15-
openssl req -key client.key -new -out client.req -subj "/C=$C/ST=$ST/L=$L/O=$O/CN=socket-adapter-client" -passout pass:password
15+
openssl req -key client.key -new -out client.req -subj "/C=$C/ST=$ST/L=$L/O=$O/CN=socket-adapter-client" -passout pass:password
1616
openssl x509 -req -in client.req -CA ca.pem -CAkey privkey.pem -CAserial file.srl -out client.pem -passin pass:password
1717

1818
cat client.pem client.key > client-and-key.pem

0 commit comments

Comments
 (0)