Commit 8296f2cd authored by Michal Vaner's avatar Michal Vaner
Browse files

Fix test

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac335@3258 e5f2f494-b856-4b98-b285-d166d9295462
parent 49382738
......@@ -20,7 +20,7 @@ import tempfile
import time
import socket
from isc.datasrc import sqlite3_ds
from isc.notify import notify_out
from isc.notify import notify_out, SOCK_DATA
class TestZoneNotifyInfo(unittest.TestCase):
def setUp(self):
......@@ -129,7 +129,7 @@ class TestNotifyOut(unittest.TestCase):
self._notify._notify_infos[('cn.', 'IN')].notify_timeout = time.time() + 10
self._notify._notify_infos[('com.', 'IN')].notify_timeout = time.time() + 10
self._notify._read_sock, self._notify._write_sock = socket.socketpair()
self._notify._write_sock.send(b'shutdown')
self._notify._write_sock.send(SOCK_DATA)
replied_zones, timeout_zones = self._notify._wait_for_notify_reply()
self.assertEqual(0, len(replied_zones))
self.assertEqual(0, len(timeout_zones))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment