libgit2 / libgit2/libgit2sharp
RenamingABranchIncludesTheCorrectReflogEntries occasionally fails the range check
還沒有人認領這個 Issue。
- 主要語言
- C#
- 星號
- 3.5k
- 分支
- 925
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Occasionally it happens to me that the Branch Renaming reflog test fails with following error message
LibGit2Sharp.Tests.BranchFixture.RenamingABranchIncludesTheCorrectReflogEntries:
Assert.InRange() Failure
Range: (08.09.2015 14:10:34 +02:00 - 08.09.2015 14:10:34 +02:00)
Actual: 08.09.2015 14:10:33 +02:00
It seems the range's From is off by a second. This behaviour appears only sporadically. As of now I only reproduced this on Ubuntu with Mono-4.0.0.0
The behaviour shows both when running the XUnit Tests from mondevelop as well as when running build.libgit2sharp.sh, but usually disappears when rerunning the test
Behaviour was noticed when working on #1185
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 RenamingABranchIncludesTheCorrectReflogEntries 測試開始,該測試在 Ubuntu 上使用 Mono 時,會間歇性地在時間戳記範圍檢查中失敗。透過 xUnit 測試或 build.libgit2sharp.sh 重現此問題,然後檢查測試如何定義及比較範圍。當測試能可靠通過,且不會掩蓋真正的 reflog 時間錯誤時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp, git
- 領域
- testing-qa
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100