Skip to content

Commit

Permalink
mute sporadic tests (DynamoDS#15046)
Browse files Browse the repository at this point in the history
  • Loading branch information
QilongTang authored Mar 22, 2024
1 parent e765280 commit 0fc5929
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/DynamoCoreTests/Logging/FeatureFlagTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public void Setup()
int eventCounter=0;
string log = string.Empty;
[Test]
[Category("Failure")]
public void FeatureFlagsShouldReturnRealDataAfterCache()
{
var testflagsManager = new DynamoUtilities.DynamoFeatureFlagsManager("testkey", new SynchronizationContext(), true);
Expand All @@ -28,13 +29,15 @@ public void FeatureFlagsShouldReturnRealDataAfterCache()
}

[Test]
[Category("Failure")]
public void FeatureFlagsShouldReturnDefaultDataBeforeCache()
{
var testflagsManager = new DynamoUtilities.DynamoFeatureFlagsManager("testkey", new SynchronizationContext(), true);
Assert.False(testflagsManager.CheckFeatureFlag<bool>("TestFlag1", false));

}
[Test]
[Category("Failure")]
public void FeatureFlagsShouldReturnValidStringData()
{
var testflagsManager = new DynamoUtilities.DynamoFeatureFlagsManager("testkey", new SynchronizationContext(), true);
Expand All @@ -44,6 +47,7 @@ public void FeatureFlagsShouldReturnValidStringData()
}

[Test]
[Category("Failure")]
public void FeatureFlagsShouldTriggerEventAfterCacheFlags()
{
var testflagsManager = new DynamoUtilities.DynamoFeatureFlagsManager("testkey", new SynchronizationContext(), true);
Expand All @@ -54,6 +58,7 @@ public void FeatureFlagsShouldTriggerEventAfterCacheFlags()
Assert.AreEqual(1, eventCounter);
}
[Test]
[Category("Failure")]
public void FeatureFlagsShouldMessageLoggedShouldContainAllLogs()
{
var testflagsManager = new DynamoUtilities.DynamoFeatureFlagsManager("testkey", new SynchronizationContext(), true);
Expand All @@ -72,6 +77,7 @@ public void FeatureFlagsShouldMessageLoggedShouldContainAllLogs()
}
//TODO(DYN-6464) Revisit this and log more when the logger is not easily overwhelmed.
[Test]
[Category("Failure")]
public void FeatureFlagsShouldMessageLoggedShouldOnlyContainNullFlagErrorOnce()
{
var testflagsManager = new DynamoUtilities.DynamoFeatureFlagsManager("testkey", new SynchronizationContext(), true);
Expand All @@ -85,6 +91,7 @@ public void FeatureFlagsShouldMessageLoggedShouldOnlyContainNullFlagErrorOnce()
}
//TODO(DYN-6464) Revisit this and log more when the logger is not easily overwhelmed.
[Test]
[Category("Failure")]
public void FeatureFlagsShouldMessageLoggedShouldOnlyContainMissingFlagErrorOnce()
{
var testflagsManager = new DynamoUtilities.DynamoFeatureFlagsManager("testkey", new SynchronizationContext(), true);
Expand All @@ -98,6 +105,7 @@ public void FeatureFlagsShouldMessageLoggedShouldOnlyContainMissingFlagErrorOnce
Assert.AreEqual(1, matches);
}
[Test]
[Category("Failure")]
public void FeatureFlagsThrowsIfCheckIngNonSupportedType()
{
var testflagsManager = new DynamoUtilities.DynamoFeatureFlagsManager("testkey", new SynchronizationContext(), true);
Expand Down

0 comments on commit 0fc5929

Please sign in to comment.