【问题标题】:Where can I find more information about specific CouchDB testing errors?在哪里可以找到有关特定 CouchDB 测试错误的更多信息?
【发布时间】:2011-07-15 01:44:27
【问题描述】:

我在附件和附件路径的蒲团测试套件中遇到错误,似乎找不到任何有关潜在原因的信息。有任何想法吗?我将在下面粘贴我得到的错误,以防万一。

附件错误:

Assertion failed: binAttDoc2._attachments["foo2.txt"].content_type == "text/plain;charset=utf-8"
Assertion failed: xhr.getResponseHeader("Content-Type") == "text/plain;charset=utf-8"
Assertion failed: xhr.getResponseHeader("Content-Type") == "text/plain;charset=utf-8"
Assertion failed: xhr.getResponseHeader("Content-Type") == "text/plain;charset=utf-8"
Assertion failed: xhr.getResponseHeader("Content-Type") == "text/plain;charset=utf-8"
Assertion failed: xhr.getResponseHeader("Content-Type") == "text/plain;charset=utf-8"
Assertion failed: xhr.getResponseHeader("Content-Type") == "text/plain;charset=utf-8"

附件路径错误:

Assertion failed: binAttDoc._attachments["foo/bar2.txt"].content_type == "text/plain;charset=utf-8"
Assertion failed: binAttDoc._attachments["foo/bar2.txt"].content_type == "text/plain;charset=utf-8"
Assertion failed: binAttDoc._attachments["foo/bar2.txt"].content_type == "text/plain;charset=utf-8"
Assertion failed: binAttDoc._attachments["foo/bar2.txt"].content_type == "text/plain;charset=utf-8"

【问题讨论】:

    标签: couchdb couchdb-futon


    【解决方案1】:

    您最好将这些发布到 CouchDB @user 列表,或在 IRC 上询问。由于浏览器 JS 实现的特殊性,有时还有错误,测试套件失败通常与 CouchDB 无关。

    我通常在隐私模式下运行测试套件,以确保缓存、cookie、登录等不会污染每次测试运行。

    主要测试完成后,我会手动重新运行任何失败。

    上面报告的错误看起来很像您在浏览器中运行某种形式的 JSON Prettyprinter,它向 CouchDB 发送的标头集与通常预期的不同。

    【讨论】:

    • 是的,它似乎与浏览器有关。这是在 Chrome 中。我试过FF4,一切都通过了。仍然把我的头包裹在这一切上,但你的回答对我寻求进一步帮助的地方很有帮助。谢谢!
    • 这里的结果相同,在 firefox(osx、firefox 18.02、couchdb 1.2.1)中运行测试并且全部通过,safari 和 chrome 失败。
    猜你喜欢
    • 2023-04-07
    • 1970-01-01
    • 2012-08-10
    • 2022-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-18
    相关资源
    最近更新 更多