Add unit test to prevent shipping forced feature flags.

master
Greyson Parrelli 2020-08-27 11:13:40 -04:00
parent c09dbfa47c
commit 4fefd14538
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,11 @@ public class FeatureFlagsTest extends BaseUnitTest {
private static final String A = "A";
private static final String B = "B";
@Test
public void disallowForcedFlags() {
assertTrue(FeatureFlags.getForcedValues().isEmpty());
}
@Test
public void updateInternal_newValue_ignoreNotInRemoteCapable() {
UpdateResult result = FeatureFlags.updateInternal(mapOf(A, true,