From 9310b534f45c90c96e1149c3ac11db8b7fe24c21 Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 14 Feb 2019 17:50:47 +0100 Subject: [PATCH] A few fixes on unit tests --- tools/test_modules/m01441.pm | 2 +- tools/test_modules/m02500.pm | 2 +- tools/test_modules/m03800.pm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/test_modules/m01441.pm b/tools/test_modules/m01441.pm index 14b386fe7..db67fc817 100644 --- a/tools/test_modules/m01441.pm +++ b/tools/test_modules/m01441.pm @@ -12,7 +12,7 @@ use Digest::SHA qw (sha256); use MIME::Base64 qw (encode_base64 decode_base64); use Encode; -sub module_constraints { [[0, 255], [0, 255], [0, 27], [0, 55], [0, 27]] } +sub module_constraints { [[0, 255], [0, 255], [0, 27], [0, 27], [0, 27]] } sub module_generate_hash { diff --git a/tools/test_modules/m02500.pm b/tools/test_modules/m02500.pm index f93fb6b9f..b0377d7c8 100644 --- a/tools/test_modules/m02500.pm +++ b/tools/test_modules/m02500.pm @@ -27,7 +27,7 @@ sub module_generate_hash my $snonce = random_bytes (32); my $anonce = random_bytes (32); - my $keyver = random_number (1, 4); # 1, 2 or 3 + my $keyver = random_number (1, 3); # 1, 2 or 3 # eapol: # should be "validly" generated, but in theory could be anything for us also: diff --git a/tools/test_modules/m03800.pm b/tools/test_modules/m03800.pm index 4ae40c6d9..0f325f635 100644 --- a/tools/test_modules/m03800.pm +++ b/tools/test_modules/m03800.pm @@ -10,7 +10,7 @@ use warnings; use Digest::MD5 qw (md5_hex); -sub module_constraints { [[0, 255], [0, 255], [0, 55], [0, 15], [0, 55]] } +sub module_constraints { [[0, 255], [0, 255], [0, 50], [0, 15], [0, 55]] } sub module_generate_hash {