Skip to content

Commit

Permalink
allow tests to be more parallelizable
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenwezel committed Nov 4, 2024
1 parent df66bc7 commit 35dfddd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CompuMaster.Dms.Test.Providers/BaseDmsProviderTestBase.vb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Imports CompuMaster.Dms
Imports CompuMaster.Dms.Data
Imports CompuMaster.Dms.Providers

<NonParallelizable> Public MustInherit Class BaseDmsProviderTestBase
<Parallelizable(ParallelScope.Fixtures)>
Public MustInherit Class BaseDmsProviderTestBase

Protected Overridable ReadOnly Property IgnoreSslErrors As Boolean = False

Expand Down Expand Up @@ -1354,7 +1355,7 @@ Imports CompuMaster.Dms.Providers
If deleteRemoteFileBeforeTest AndAlso Item IsNot Nothing Then
'JIT-cleanup
dmsProvider.DeleteRemoteItem(Item, DmsResourceItem.ItemTypes.File)
Item = dmsProvider.ListRemoteItem(RemoteFilePath)
Item = dmsProvider.ListRemoteItem(remoteFilePath)
End If
Assert.IsNull(Item, "Remote file must not exist: " & remoteFilePath)
Assert.IsFalse(dmsProvider.RemoteItemExists(remoteFilePath), "Remote file must not exist: " & remoteFilePath)
Expand Down
4 changes: 3 additions & 1 deletion CompuMaster.Dms.Test.Providers/ToolsTest.vb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Imports NUnit.Framework

<TestFixture> Public Class ToolsTest
<TestFixture>
<Parallelizable(ParallelScope.All)>
Public Class ToolsTest

<Test> Public Sub ByteSizeToUIDisplayText()
Dim CurCulture As System.Globalization.CultureInfo = System.Globalization.CultureInfo.CurrentCulture
Expand Down

0 comments on commit 35dfddd

Please sign in to comment.