Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Bump version for new release; move to latest node patch release v8.14…
Browse files Browse the repository at this point in the history
….0 (#83)

* Bump version for new release
* Move to latest node patch release v8.14.0
* Refactor test for stability
  • Loading branch information
stephen-palmer committed Dec 15, 2018
1 parent ca2d233 commit 0357d34
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
v8.12.0
v8.14.0
1 change: 1 addition & 0 deletions lib/server/command_processor.js
Expand Up @@ -25,6 +25,7 @@ class CommandProcessor extends Duplex {
putStream: this._handleWrite.bind(this),
command: this._handleCommand.bind(this),
version: this._handleVersion.bind(this),
none: () => Promise.resolve()
};

this._writeHandler = this._writeHandlers.version;
Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,10 +1,10 @@
{
"name": "unity-cache-server",
"version": "6.2.0",
"version": "6.2.1",
"description": "Unity Cache Server",
"main": "lib/index.js",
"engines": {
"node": "^8.12.0"
"node": "^8.14.0"
},
"directories": {
"test": "test"
Expand Down
6 changes: 4 additions & 2 deletions test/protocol.js
Expand Up @@ -241,7 +241,6 @@ describe("Protocol", () => {

it("should close file streams if the client drops before finished reading", async () => {
const resp = new CacheServerResponseTransform();
resp.on('data', () => {});
client.pipe(resp);

const buf = Buffer.from(encodeCommand(cmd.getAsset, self.data.guid, self.data.hash), 'ascii');
Expand All @@ -254,9 +253,12 @@ describe("Protocol", () => {
}

// quit immediately
client.write(Buffer.from(encodeCommand(cmd.quit), 'ascii'));
resp.on('header', () => {
client.write(Buffer.from(encodeCommand(cmd.quit), 'ascii'));
});

return new Promise(resolve => {
resp.on('data', () => {});
expectLog(client, /Destroying cache file readStream/i, resolve);
});
});
Expand Down

0 comments on commit 0357d34

Please sign in to comment.