Skip to content

Commit 7b068ab

Browse files
committed
clean up
1 parent 06c0742 commit 7b068ab

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

src/Parse/ParseClient.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ public static function getServerHealth()
237237

238238
// try to get a response from the server
239239
$url = self::createRequestUrl('health');
240-
241240
$response = $httpClient->send($url);
242241

243242
$errorCode = $httpClient->getErrorCode();

tests/Parse/ParseClientTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public function tearDown() : void
3737

3838
// unset CA file
3939
ParseClient::setCAFile(null);
40+
41+
// unset http options
42+
ParseClient::setHttpOptions(null);
4043
}
4144

4245
/**

tests/server.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const parseServer = new ParseServer({
1515
restKey: "rest-api-key-here",
1616
databaseURI: "mongodb://localhost/test",
1717
cloud: __dirname + "/tests/cloud-code.js",
18-
publicServerURL: "https://localhost:1337/parse",
18+
publicServerURL: "http://localhost:1337/parse",
1919
logsFolder: path.resolve(process.cwd(), 'logs'),
2020
verbose: true,
2121
silent: true,
@@ -83,10 +83,13 @@ const serverOptions = {
8383
}
8484

8585
function onRequest(req) {
86-
console.log(new Date()+' '+
87-
req.connection.remoteAddress+' '+
88-
req.socket.getPeerCertificate().subject.CN+' '+
89-
req.method+' '+req.baseUrl);
86+
console.log(
87+
new Date(),
88+
req.connection.remoteAddress,
89+
req.socket.getPeerCertificate().subject.CN,
90+
req.method,
91+
req.baseUrl,
92+
);
9093
}
9194

9295
// Create TLS enabled server

0 commit comments

Comments
 (0)