Skip to content

Commit 924668c

Browse files
authored
Fix outerloop tests in System.Formats.Tar (#89172)
The change from #88280 caused an issue when discovering the test: ``` System.InvalidOperationException : An appropriate member 'ManualTestsEnabled' could not be found. The conditional method needs to be a static method, property, or field on the type System.Formats.Tar.Tests.ManualTestsAsync or any ancestor, of any visibility, accepting zero arguments, and having a return type of Boolean. ```
1 parent 54c0756 commit 924668c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Formats.Tar/tests/Manual/ManualTestsAsync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static IEnumerable<object[]> WriteEntry_LongFileSize_TheoryDataAsync()
1616
// Fixes error xUnit1015: MemberData needs to be in the same class
1717
=> ManualTests.WriteEntry_LongFileSize_TheoryData();
1818

19-
[ConditionalTheory(nameof(ManualTests.ManualTestsEnabled))]
19+
[ConditionalTheory(typeof(ManualTests), nameof(ManualTests.ManualTestsEnabled))]
2020
[MemberData(nameof(WriteEntry_LongFileSize_TheoryDataAsync))]
2121
[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.Android | TestPlatforms.Browser, "Needs too much disk space.")]
2222
public async Task WriteEntry_LongFileSizeAsync(TarEntryFormat entryFormat, long size, bool unseekableStream)

0 commit comments

Comments
 (0)