Skip to content

Commit

Permalink
Clean up the deprecated vusMax option from tests and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
na-- committed May 20, 2021
1 parent 7fbdc5a commit df918f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1583,7 +1583,7 @@ func TestStuffNotPanicking(t *testing.T) {
var group = require("k6").group;
var parseHTML = require("k6/html").parseHTML;
exports.options = { iterations: 1, vus: 1, vusMax: 1 };
exports.options = { iterations: 1, vus: 1 };
exports.default = function() {
var doc = parseHTML(http.get("HTTPBIN_URL/html").body);
Expand Down Expand Up @@ -1643,7 +1643,7 @@ func TestPanicOnSimpleHTML(t *testing.T) {
r, err := getSimpleRunner(t, "/script.js", `
var parseHTML = require("k6/html").parseHTML;
exports.options = { iterations: 1, vus: 1, vusMax: 1 };
exports.options = { iterations: 1, vus: 1 };
exports.default = function() {
var doc = parseHTML("<html>");
Expand Down
4 changes: 2 additions & 2 deletions lib/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,9 @@ type Options struct {
// Returns the result of overwriting any fields with any that are set on the argument.
//
// Example:
// a := Options{VUs: null.IntFrom(10), VUsMax: null.IntFrom(10)}
// a := Options{VUs: null.IntFrom(10)}
// b := Options{VUs: null.IntFrom(5)}
// a.Apply(b) // Options{VUs: null.IntFrom(5), VUsMax: null.IntFrom(10)}
// a.Apply(b) // Options{VUs: null.IntFrom(5)}
func (o Options) Apply(opts Options) Options {
if opts.Paused.Valid {
o.Paused = opts.Paused
Expand Down

0 comments on commit df918f1

Please sign in to comment.