Skip to content
Merged
Prev Previous commit
Small changes to unit test
  • Loading branch information
z103cb committed May 26, 2023
commit b32182ce790f31affd79246cd635e3f24e4c899f
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ func TestNewQuotaManagerConsumerAllocationRelease(t *testing.T) {
assert.NoError(t, err, "No error expected when adding a tree to forest")
err = qmManagerUnderTest.AddTreeToForest(forestName, testTreeName)
assert.NoError(t, err, "No error expected when adding a tree from forest")
qmManagerUnderTest.SetMode(quota.Normal)
modeSet := qmManagerUnderTest.SetMode(quota.Normal)
assert.True(t, modeSet, "Setting the mode should not fail.")

// Define the test table
var tests = []struct {
Expand Down