diff --git a/tests/test_analyzer.py b/tests/test_analyzer.py
index 6e8b4ab62182ab7a14e0a49abcd39c64101a4c2f..f3ff8efa5391e90b720210f93f9231c72086e101 100644
--- a/tests/test_analyzer.py
+++ b/tests/test_analyzer.py
@@ -115,7 +115,7 @@ class TestAnalyzer(TestClass):
 
         # Check that the analysis using a custom metric defined with a plugin works
         datasets = ["dataset_%iD.nc" % dimension for dimension in range(1, 4)]
-        constrains = f"{custom_metric_name}:3"
+        constrains = f"{custom_metric_name}:.1"
 
         for ds in datasets:
             input_path = input_tempdir / ds
diff --git a/tests/test_cli.py b/tests/test_cli.py
index f276b189cf872ddfde4276aaea3876036f6abe08..03adcb67f2f4a4a6700b8920a1950c88a2776525 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -102,7 +102,7 @@ class TestCommandLineInterface(TestClass):
         with open(plugin_path, "w") as f:
             f.write(function_code)
 
-        commands = ["_", "analyze", str(file_path), "--constrains", f"{plugin_name}:4", "--plugins",
+        commands = ["_", "analyze", str(file_path), "--constrains", f"{plugin_name}:.1", "--plugins",
                     str(plugin_path), "-c", "zfp"]
         mocker.patch("sys.argv", commands)
         enstools.compression.cli.main()