From: Eugene Crosser Date: Sat, 12 Apr 2014 15:02:13 +0000 (+0400) Subject: make test data dir linke namecoin namespace X-Git-Tag: 0.9.0.0~89 X-Git-Url: http://average.org/gitweb/?a=commitdiff_plain;h=961eaa01e2d52b53cab104deb4d510d476fb242d;p=pdns-pipe-nmc.git make test data dir linke namecoin namespace --- diff --git a/d/root b/d/root new file mode 100644 index 0000000..a59957c --- /dev/null +++ b/d/root @@ -0,0 +1 @@ +{"info":{"description":"Dot-BIT Project - Official Website","registrar":"http://register.dot-bit.org"},"fingerprint":["30:B0:60:94:32:08:EC:F5:BE:DF:F4:BB:EE:52:90:2C:5D:47:62:46"],"ns":["ns0.web-sweet-web.net","ns1.web-sweet-web.net"],"map":{"":{"ns":["ns0.web-sweet-web.net","ns1.web-sweet-web.net"]}},"email":"register@dot-bit.org"} diff --git a/data/root b/data/root deleted file mode 100644 index a59957c..0000000 --- a/data/root +++ /dev/null @@ -1 +0,0 @@ -{"info":{"description":"Dot-BIT Project - Official Website","registrar":"http://register.dot-bit.org"},"fingerprint":["30:B0:60:94:32:08:EC:F5:BE:DF:F4:BB:EE:52:90:2C:5D:47:62:46"],"ns":["ns0.web-sweet-web.net","ns1.web-sweet-web.net"],"map":{"":{"ns":["ns0.web-sweet-web.net","ns1.web-sweet-web.net"]}},"email":"register@dot-bit.org"} diff --git a/test.hs b/test.hs index 7c3be16..8f5b77c 100644 --- a/test.hs +++ b/test.hs @@ -11,7 +11,7 @@ import Control.Exception import NmcDom queryOp :: ByteString -> IO (Either String ByteString) -queryOp key = catch (readFile ("data/" ++ (unpack key)) >>= return . Right) +queryOp key = catch (readFile ("d/" ++ (unpack key)) >>= return . Right) (\e -> return (Left (show (e :: IOException)))) main = do