File tree 1 file changed +5
-3
lines changed
tests/StackExchange.Redis.Extensions.Core.Tests
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
using System . Collections . Generic ;
5
5
using System . Threading . Tasks ;
6
6
7
+ using StackExchange . Redis . Extensions . Core . Tests . Helpers ;
8
+
7
9
using Xunit ;
8
10
9
11
using static System . Linq . Enumerable ;
@@ -79,18 +81,18 @@ public async Task HashSetMultipleValues_HashGetMultipleValues_ShouldInsert_Async
79
81
{
80
82
// arrange
81
83
var hashKey = Guid . NewGuid ( ) . ToString ( ) ;
82
- var values = Range ( 0 , 100 ) . Select ( _ => new Helpers . TestClass < DateTime > ( Guid . NewGuid ( ) . ToString ( ) , DateTime . UtcNow ) ) ;
84
+ var values = Range ( 0 , 100 ) . Select ( _ => new TestClass < DateTime > ( Guid . NewGuid ( ) . ToString ( ) , DateTime . UtcNow ) ) ;
83
85
var map = values . ToDictionary ( _ => Guid . NewGuid ( ) . ToString ( ) ) ;
84
86
85
87
// act
86
88
await Sut . GetDefaultDatabase ( ) . HashSetAsync ( hashKey , map ) ;
87
- await Task . Delay ( 500 ) ;
89
+ await Task . Delay ( 1000 ) ;
88
90
89
91
// assert
90
92
var data = ( await db
91
93
. HashGetAsync ( hashKey , map . Keys . Select ( x => ( RedisValue ) x ) . ToArray ( ) ) )
92
94
. ToList ( )
93
- . ConvertAll ( x => serializer . Deserialize < Helpers . TestClass < DateTime > > ( x ! ) ) ;
95
+ . ConvertAll ( x => serializer . Deserialize < TestClass < DateTime > > ( x ! ) ) ;
94
96
95
97
Assert . Equal ( map . Count , data . Count ) ;
96
98
You can’t perform that action at this time.
0 commit comments