Skip to content

Commit

Permalink
fixing missing licensing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Mar 20, 2024
1 parent 76b8d41 commit ae1ce22
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_licensing.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,20 +182,21 @@ def test_license_checker(tmpdir, license_checker):

@requires("local")
@skip_no_lic_bin
def test_check_license_file(tmpdir):
def test_check_license_file(mapdl, tmpdir):
timeout = 15
checker = licensing.LicenseChecker(timeout=timeout)
# start the license check in the background
checker.start(checkout_license=False)

try:
mapdl = launch_mapdl(
mapdl_ = launch_mapdl(
port=mapdl.port + 1,
license_server_check=False,
start_timeout=timeout,
additional_switches=QUICK_LAUNCH_SWITCHES,
)
assert mapdl._local
mapdl.exit()
assert mapdl_._local
mapdl_.exit()
except IOError: # MAPDL never started
assert not checker._license_file_success
else:
Expand Down

0 comments on commit ae1ce22

Please sign in to comment.