UNPKG

@gatling.io/mqtt

Version:

Gatling JS is a JavaScript/TypeScript interface for the [Gatling load testing tool](https://gatling.io/).

15 lines (14 loc) 619 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.wrapWaitForMessagesActionBuilder = void 0; const core_1 = require("@gatling.io/core"); const wrapWaitForMessagesActionBuilder = (_underlying) => ({ _underlying, timeout: (timeout) => { if ((0, core_1.isDuration)(timeout)) { return (0, exports.wrapWaitForMessagesActionBuilder)(_underlying.timeout((0, core_1.toJvmDuration)(timeout))); } throw Error(`timeout() called with invalid argument ${timeout}`); } }); exports.wrapWaitForMessagesActionBuilder = wrapWaitForMessagesActionBuilder;