Move and refactor fs tests

This commit is contained in:
Asher
2019-02-19 14:21:04 -06:00
parent 2889b3fede
commit d80f82ab98
11 changed files with 726 additions and 682 deletions

View File

@@ -7,7 +7,7 @@ import { retry } from "../retry";
* A connection based on a web socket. Automatically reconnects and buffers
* messages during connection.
*/
class Connection implements ReadWriteConnection {
class WebsocketConnection implements ReadWriteConnection {
private activeSocket: WebSocket | undefined;
private readonly messageBuffer = <Uint8Array[]>[];
private readonly socketTimeoutDelay = 60 * 1000;
@@ -129,4 +129,4 @@ class Connection implements ReadWriteConnection {
}
// Global instance so all fills can use the same client.
export const client = new Client(new Connection());
export const client = new Client(new WebsocketConnection());