Bug 528187 - TestRequestLog sometimes scrambles events in unit tests
Summary: TestRequestLog sometimes scrambles events in unit tests
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.11   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-06 03:55 EST by Markus Duft CLA
Modified: 2022-07-31 08:39 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Duft CLA 2017-12-06 03:55:44 EST
For an example see https://git.eclipse.org/r/#/c/111364 while it's still hot :)

org.eclipse.jgit.lfs.server.fs.CheckoutTest.testKnownContent sometimes fails in CI, and sometimes (more rare) even on my own machine locally. It seem to be due to a wrong order in the TestRequestLog:

Stacktrace
org.junit.ComparisonFailure: expected:<...6383ea776df414 200, [POST /lfs/objects/batch 200, GET /lfs/objects/8bb0cf6eb9b17d0f7d22b456f121257dc1254e1f01665370476383ea776df414] 200]> but was:<...6383ea776df414 200, [GET /lfs/objects/8bb0cf6eb9b17d0f7d22b456f121257dc1254e1f01665370476383ea776df414 200, POST /lfs/objects/batch] 200]>
	at org.eclipse.jgit.lfs.server.fs.CheckoutTest.testKnownContent(CheckoutTest.java:130)

It is not really deterministic...
Comment 2 Eclipse Genie CLA 2018-02-21 16:55:42 EST
New Gerrit change created: https://git.eclipse.org/r/117909
Comment 3 Eclipse Genie CLA 2018-02-22 18:36:33 EST
Gerrit change https://git.eclipse.org/r/117909 was merged to [master].
Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=152d5e2a14f2c03d55776154f67fab3f408a57e0
Comment 4 Eclipse Genie CLA 2020-08-05 11:15:07 EDT
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/167299
Comment 5 Eclipse Genie CLA 2022-07-19 06:15:17 EDT
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/194785