aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/libstore
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 08:40:38 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 08:40:38 +0100
commit2bb0a063466e7ef940b91d6eb441d4a0c5f0fb1f (patch)
tree6cc9486faf829e8da3cac95c11980388f942a926 /tests/unit/libstore
parent044c117a9f8ae92241076b2afa1a419cdc912c5e (diff)
Merge pull request #9841 from obsidiansystems/float-speed-factor
Convert `Machine::speedFactor` from a non-neg int to a non-neg float (cherry picked from commit 69d0ae27e376e7c7c4f237716b0149223b8a805a) Change-Id: I2afb5cf9e4fe1384985c58353946135c3d102b42
Diffstat (limited to 'tests/unit/libstore')
-rw-r--r--tests/unit/libstore/machines.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/libstore/machines.cc b/tests/unit/libstore/machines.cc
index 72b2c3ac6..702461926 100644
--- a/tests/unit/libstore/machines.cc
+++ b/tests/unit/libstore/machines.cc
@@ -12,6 +12,7 @@ using testing::SizeIs;
using nix::absPath;
using nix::FormatError;
+using nix::UsageError;
using nix::getMachines;
using nix::Machine;
using nix::Machines;
@@ -131,7 +132,7 @@ TEST(machines, getMachinesWithIncorrectFormat) {
settings.builders = "nix@scratchy.labs.cs.uu.nl - - 8 three";
EXPECT_THROW(getMachines(), FormatError);
settings.builders = "nix@scratchy.labs.cs.uu.nl - - 8 -3";
- EXPECT_THROW(getMachines(), FormatError);
+ EXPECT_THROW(getMachines(), UsageError);
settings.builders = "nix@scratchy.labs.cs.uu.nl - - 8 3 - - BAD_BASE64";
EXPECT_THROW(getMachines(), FormatError);
}