enlarge timeout to ensure watch test does not break by accident

This commit is contained in:
Boshi Lian
2017-11-07 16:57:06 +08:00
parent 04e34d6c10
commit 00f742696a

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@@ -163,7 +163,7 @@ namespace k8s.Tests
);
// wait at least an event
Thread.Sleep(TimeSpan.FromMilliseconds(300));
Thread.Sleep(TimeSpan.FromMilliseconds(500));
Assert.NotEmpty(events);
Assert.True(watcher.Watching);
@@ -173,7 +173,7 @@ namespace k8s.Tests
events.Clear();
// make sure wait event called
Thread.Sleep(TimeSpan.FromMilliseconds(300));
Thread.Sleep(TimeSpan.FromMilliseconds(500));
Assert.Empty(events);
Assert.False(watcher.Watching);