Skip to content

Commit

Permalink
fix: mau related tests (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc authored Feb 26, 2024
1 parent 0eef16f commit 74d3701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/io/supertokens/test/FeatureFlagTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void noLicenseKeyShouldHaveEmptyFeatureFlag()

JsonObject stats = FeatureFlag.getInstance(process.getProcess()).getPaidFeatureStats();
Assert.assertEquals(stats.entrySet().size(), 1);
Assert.assertEquals(stats.get("maus").getAsJsonArray().size(), 30);
Assert.assertEquals(stats.get("maus").getAsJsonArray().size(), 31);
Assert.assertEquals(stats.get("maus").getAsJsonArray().get(0).getAsInt(), 0);
Assert.assertEquals(stats.get("maus").getAsJsonArray().get(29).getAsInt(), 0);

Expand Down Expand Up @@ -251,7 +251,7 @@ public void testThatCallingGetFeatureFlagAPIReturnsTotpStats() throws Exception
}

assert features.contains(new JsonPrimitive("totp"));
assert maus.size() == 30;
assert maus.size() == 31;
assert maus.get(0).getAsInt() == 2; // 2 users have signed up
assert maus.get(29).getAsInt() == 2;

Expand Down

0 comments on commit 74d3701

Please sign in to comment.