1
- using System ;
1
+ using System ;
2
2
using System . Collections . Generic ;
3
3
using System . IO ;
4
4
using System . Linq ;
@@ -42,7 +42,7 @@ private static async Task WriteStreamLine(HttpContext httpContext, string repons
42
42
}
43
43
44
44
[ Fact ]
45
- public void TestCannotWatch ( )
45
+ public void CannotWatch ( )
46
46
{
47
47
using ( var server = new MockKubeApiServer ( ) )
48
48
{
@@ -74,7 +74,7 @@ public void TestCannotWatch()
74
74
}
75
75
76
76
[ Fact ]
77
- public void TestSuriveBadLine ( )
77
+ public void SuriveBadLine ( )
78
78
{
79
79
using ( var server = new MockKubeApiServer ( async httpContext =>
80
80
{
@@ -133,7 +133,7 @@ public void TestSuriveBadLine()
133
133
}
134
134
135
135
[ Fact ]
136
- public void TestDisposeWatch ( )
136
+ public void DisposeWatch ( )
137
137
{
138
138
using ( var server = new MockKubeApiServer ( async httpContext =>
139
139
{
@@ -163,7 +163,7 @@ public void TestDisposeWatch()
163
163
) ;
164
164
165
165
// wait at least an event
166
- Thread . Sleep ( TimeSpan . FromMilliseconds ( 300 ) ) ;
166
+ Thread . Sleep ( TimeSpan . FromMilliseconds ( 500 ) ) ;
167
167
168
168
Assert . NotEmpty ( events ) ;
169
169
Assert . True ( watcher . Watching ) ;
@@ -173,15 +173,15 @@ public void TestDisposeWatch()
173
173
events . Clear ( ) ;
174
174
175
175
// make sure wait event called
176
- Thread . Sleep ( TimeSpan . FromMilliseconds ( 300 ) ) ;
176
+ Thread . Sleep ( TimeSpan . FromMilliseconds ( 500 ) ) ;
177
177
Assert . Empty ( events ) ;
178
178
Assert . False ( watcher . Watching ) ;
179
179
180
180
}
181
181
}
182
182
183
183
[ Fact ]
184
- public void TestWatchAllEvents ( )
184
+ public void WatchAllEvents ( )
185
185
{
186
186
using ( var server = new MockKubeApiServer ( async httpContext =>
187
187
{
@@ -237,7 +237,7 @@ public void TestWatchAllEvents()
237
237
}
238
238
239
239
[ Fact ]
240
- public void TestWatchServerDisconnect ( )
240
+ public void WatchServerDisconnect ( )
241
241
{
242
242
Watcher < Corev1Pod > watcher ;
243
243
Exception exceptionCatched = null ;
@@ -271,4 +271,4 @@ public void TestWatchServerDisconnect()
271
271
Assert . IsType < IOException > ( exceptionCatched ) ;
272
272
}
273
273
}
274
- }
274
+ }
0 commit comments