File tree Expand file tree Collapse file tree 6 files changed +21
-14
lines changed Expand file tree Collapse file tree 6 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 1
- BUILD_VERSION = "0.8.3 "
1
+ BUILD_VERSION = "0.8.5 "
Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ public class CursorTests
18
18
public CursorTests ( )
19
19
{
20
20
var location = typeof ( EnvironmentTests ) . Assembly . Location ;
21
- _path = Path . Combine ( Path . GetDirectoryName ( location ) , "TestDb" ) ;
21
+ _path = Path . Combine (
22
+ Path . GetDirectoryName ( location ) ,
23
+ "TestDb" + Guid . NewGuid ( ) . ToString ( ) ) ;
22
24
}
23
25
24
26
[ SetUp ]
Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ public class DatabaseIOTests
19
19
public DatabaseIOTests ( )
20
20
{
21
21
var location = typeof ( EnvironmentTests ) . Assembly . Location ;
22
- _path = Path . Combine ( Path . GetDirectoryName ( location ) , "TestDb" ) ;
22
+ _path = Path . Combine (
23
+ Path . GetDirectoryName ( location ) ,
24
+ "TestDb" + Guid . NewGuid ( ) . ToString ( ) ) ;
23
25
}
24
26
25
27
[ SetUp ]
Original file line number Diff line number Diff line change 1
- using System . IO ;
1
+ using System ;
2
+ using System . IO ;
2
3
using NUnit . Framework ;
3
4
4
5
namespace LightningDB . Tests
@@ -13,7 +14,9 @@ public class DatabaseTests
13
14
public DatabaseTests ( )
14
15
{
15
16
var location = typeof ( EnvironmentTests ) . Assembly . Location ;
16
- _path = Path . Combine ( Path . GetDirectoryName ( location ) , "TestDb" ) ;
17
+ _path = Path . Combine (
18
+ Path . GetDirectoryName ( location ) ,
19
+ "TestDb" + Guid . NewGuid ( ) . ToString ( ) ) ;
17
20
}
18
21
19
22
[ SetUp ]
Original file line number Diff line number Diff line change 1
- using System . IO ;
1
+ using System ;
2
+ using System . IO ;
2
3
using NUnit . Framework ;
3
4
4
5
namespace LightningDB . Tests
@@ -14,7 +15,7 @@ public EnvironmentTests()
14
15
var location = typeof ( EnvironmentTests ) . Assembly . Location ;
15
16
var dir = Path . GetDirectoryName ( location ) ;
16
17
17
- _path = Path . Combine ( dir , "TestDb" ) ;
18
+ _path = Path . Combine ( dir , "TestDb" + Guid . NewGuid ( ) . ToString ( ) ) ;
18
19
_pathCopy = _path + "Copy" ;
19
20
}
20
21
Original file line number Diff line number Diff line change 1
- using System . IO ;
1
+ using System ;
2
+ using System . IO ;
2
3
using NUnit . Framework ;
3
4
4
5
namespace LightningDB . Tests
@@ -13,7 +14,9 @@ public class TransactionTests
13
14
public TransactionTests ( )
14
15
{
15
16
var location = typeof ( EnvironmentTests ) . Assembly . Location ;
16
- _path = Path . Combine ( Path . GetDirectoryName ( location ) , "TestDb" ) ;
17
+ _path = Path . Combine (
18
+ Path . GetDirectoryName ( location ) ,
19
+ "TestDb" + Guid . NewGuid ( ) . ToString ( ) ) ;
17
20
}
18
21
19
22
[ SetUp ]
@@ -30,11 +33,7 @@ public void Cleanup()
30
33
{
31
34
_env . Close ( ) ;
32
35
33
- try
34
- {
35
- Directory . Delete ( _path , true ) ;
36
- }
37
- catch { }
36
+ Directory . Delete ( _path , true ) ;
38
37
}
39
38
40
39
[ Test ]
You can’t perform that action at this time.
0 commit comments