diff --git a/CoAP.Test/CoapClientTest.cs b/CoAP.Test/CoapClientTest.cs index fa173db..c8fe709 100644 --- a/CoAP.Test/CoapClientTest.cs +++ b/CoAP.Test/CoapClientTest.cs @@ -69,6 +69,7 @@ public void TestSynchronousCall() // Observe the resource _expected = CONTENT_2; + _notifications = 0; CoapObserveRelation obs1 = client.Observe(response => { Interlocked.Increment(ref _notifications); @@ -142,6 +143,7 @@ public void TestAsynchronousCall() Thread.Sleep(100); // Observe the resource + _notifications = 0; _expected = CONTENT_2; CoapObserveRelation obs1 = client.ObserveAsync(response => {