Skip to content

Commit

Permalink
close ledger
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnxie999 committed May 31, 2023
1 parent 4b3c4d7 commit 5689ae4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/app/Clawback_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ class Clawback_test : public beast::unit_test::suite

// alice now is able to set asfAllowClawback
env(fset(alice, asfAllowClawback));
env.require(flags(alice, asfAllowClawback));
env.close();
env.require(flags(alice, asfAllowClawback));

BEAST_EXPECT(ownerCount(env, alice) == 0);
BEAST_EXPECT(ownerCount(env, bob) == 0);
Expand All @@ -188,17 +188,17 @@ class Clawback_test : public beast::unit_test::suite
// alice attempts to set asfAllowClawback flag while amendment is
// disabled. no error is returned, but the flag remains to be unset.
env(fset(alice, asfAllowClawback));
env.require(nflags(alice, asfAllowClawback));
env.close();
env.require(nflags(alice, asfAllowClawback));

// now enable clawback amendment
env.enableFeature(featureClawback);
env.close();

// asfAllowClawback can be set
env(fset(alice, asfAllowClawback));
env.require(flags(alice, asfAllowClawback));
env.close();
env.require(flags(alice, asfAllowClawback));
}
}

Expand Down

0 comments on commit 5689ae4

Please sign in to comment.