aboutsummaryrefslogtreecommitdiffstats
path: root/util/lamport_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-06 20:31:20 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-06 20:31:20 +0200
commit435be2b693aee89ed34a2d1e7291b3b141b19717 (patch)
tree89244a9dcb995c27002995e9f25f9be631101713 /util/lamport_test.go
parent593891b8e01fd89866b30854a60aece1dad5f6ab (diff)
downloadgit-bug-435be2b693aee89ed34a2d1e7291b3b141b19717.tar.gz
bug: add a Lamport logical clock to be able to sort bugs by creation time and edit time without having to rely on a timestamp
Diffstat (limited to 'util/lamport_test.go')
-rw-r--r--util/lamport_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/lamport_test.go b/util/lamport_test.go
index 0bac7d51..de7f1822 100644
--- a/util/lamport_test.go
+++ b/util/lamport_test.go
@@ -38,7 +38,7 @@ func TestLamportClock(t *testing.T) {
t.Fatalf("bad time value")
}
- if l.Increment() != 1 {
+ if l.Increment() != 0 {
t.Fatalf("bad time value")
}