From d327261c749da6f3f387abf63f8f51c0c054515e Mon Sep 17 00:00:00 2001 From: plehmkuhl Date: Wed, 3 Feb 2016 11:42:32 +0100 Subject: [PATCH] Adjusted testcase "client-message.js" to match other tests. --- test/client-message.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/test/client-message.js b/test/client-message.js index 33d0d19..f9bcc10 100644 --- a/test/client-message.js +++ b/test/client-message.js @@ -14,22 +14,15 @@ describe('ClientMessage', function() { self.wid = self.X.AllocID(); self.X.CreateWindow(self.wid, dpy.screen[0].root, 0, 0, 1, 1); // 1x1 pixel window - //Ugly but works for now self.X.InternAtom(false, 'TEST_ATOM_1', function(err, atom) { should.not.exist(err); ATOM['TEST_ATOM_1'] = atom; - self.X.InternAtom(false, 'TEST_ATOM_2', function(err, atom) { - should.not.exist(err); - ATOM['TEST_ATOM_2'] = atom; - done(); - }); + done(); }); }); - client.on('error', function (err) { - console.error('Error : ', err); - }); + client.on('error', done); }); it('should receive client message with format=8', function(done) {