Skip to content

Commit

Permalink
Fix zlib level change in clipboard tests
Browse files Browse the repository at this point in the history
The compression level got changed in 01bb36d, but the tests weren't
updated to follow this change.
  • Loading branch information
CendioOssman committed Aug 29, 2023
1 parent b40a45a commit e81602d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test.rfb.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const expect = chai.expect;
import RFB from '../core/rfb.js';
import Websock from '../core/websock.js';
import ZStream from "../vendor/pako/lib/zlib/zstream.js";
import { deflateInit, deflate } from "../vendor/pako/lib/zlib/deflate.js";
import { deflateInit, deflate, Z_DEFAULT_COMPRESSION } from "../vendor/pako/lib/zlib/deflate.js";
import { encodings } from '../core/encodings.js';
import { toUnsigned32bit } from '../core/util/int.js';
import { encodeUTF8 } from '../core/util/strings.js';
Expand Down Expand Up @@ -54,7 +54,7 @@ function deflateWithSize(data) {
let strm = new ZStream();
let chunkSize = 1024 * 10 * 10;
strm.output = new Uint8Array(chunkSize);
deflateInit(strm, 5);
deflateInit(strm, Z_DEFAULT_COMPRESSION);

/* eslint-disable camelcase */
strm.input = unCompData;
Expand Down

0 comments on commit e81602d

Please sign in to comment.