Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mute sporadic tests #15046

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading