diff --git a/cmd/metal-api/internal/service/partition-service_test.go b/cmd/metal-api/internal/service/partition-service_test.go index 17d40a29e..30c722c59 100644 --- a/cmd/metal-api/internal/service/partition-service_test.go +++ b/cmd/metal-api/internal/service/partition-service_test.go @@ -289,5 +289,5 @@ func TestPartitionCapacity(t *testing.T) { require.Equal(t, 5, c.Total) require.Equal(t, 0, c.Free) require.Equal(t, 3, c.Reservations) - require.Equal(t, 0, c.UsedReservations) + require.Equal(t, 1, c.UsedReservations) } diff --git a/cmd/metal-api/internal/testdata/testdata.go b/cmd/metal-api/internal/testdata/testdata.go index 377bbf881..ae90776bc 100644 --- a/cmd/metal-api/internal/testdata/testdata.go +++ b/cmd/metal-api/internal/testdata/testdata.go @@ -198,7 +198,7 @@ var ( { Amount: 3, PartitionIDs: []string{Partition1.ID}, - ProjectID: "a", + ProjectID: "p1", }, }, }