Fix zlib level change in clipboard tests

The compression level got changed in 01bb36d4, but the tests weren't
updated to follow this change.
This commit is contained in:
Pierre Ossman 2023-08-29 17:38:44 +02:00
parent b40a45a11b
commit e81602d705
1 changed files with 2 additions and 2 deletions

View File

@ -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';
@ -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;