                 let response = application(MockConnection(), MockRequest(method: "PUT", path: "/characteristics", body: body))
                 XCTAssertEqual(response.status, .noContent)
 
-                wait(for: [expectation], timeout: 0.1)
+                wait(for: [expectation], timeout: 0.01)
             }
 
             var secondEventTimestamp: Date!

                let response = application(MockConnection(), MockRequest(method: "PUT", path: "/characteristics", body: body))
                XCTAssertEqual(response.status, .noContent)

                wait(for: [expectation], timeout: 0.1)
            }

            // turn lamp off from different connection

                    XCTAssertEqual(response.status, .noContent)
                }

                wait(for: [expectation], timeout: 1.01)
            }

            guard
