From 44d7587940f842a343a64d9107601591bdfb1027 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 8 Nov 2020 17:53:11 +0100 Subject: lamport: match wikipedia algorithm --- util/lamport/clock_testing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/lamport/clock_testing.go') diff --git a/util/lamport/clock_testing.go b/util/lamport/clock_testing.go index fc59afb2..4bf6d2bf 100644 --- a/util/lamport/clock_testing.go +++ b/util/lamport/clock_testing.go @@ -11,7 +11,7 @@ func testClock(t *testing.T, c Clock) { val, err := c.Increment() assert.NoError(t, err) - assert.Equal(t, Time(1), val) + assert.Equal(t, Time(2), val) assert.Equal(t, Time(2), c.Time()) err = c.Witness(41) -- cgit From 8d63c983c982f93cc48d3996d6bd097ddeeb327f Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 3 Jan 2021 23:59:25 +0100 Subject: WIP --- util/lamport/clock_testing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/lamport/clock_testing.go') diff --git a/util/lamport/clock_testing.go b/util/lamport/clock_testing.go index 4bf6d2bf..de66c5c9 100644 --- a/util/lamport/clock_testing.go +++ b/util/lamport/clock_testing.go @@ -14,11 +14,11 @@ func testClock(t *testing.T, c Clock) { assert.Equal(t, Time(2), val) assert.Equal(t, Time(2), c.Time()) - err = c.Witness(41) + err = c.Witness(42) assert.NoError(t, err) assert.Equal(t, Time(42), c.Time()) - err = c.Witness(41) + err = c.Witness(42) assert.NoError(t, err) assert.Equal(t, Time(42), c.Time()) -- cgit