aboutsummaryrefslogtreecommitdiffstats
path: root/util/lamport/persisted_clock_test.go
blob: 9ef690da3922f944b74db8eaff0aa48ef6adaf1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package lamport

import (
	"testing"

	"github.com/go-git/go-billy/v5/memfs"
	"github.com/stretchr/testify/require"
)

func TestPersistedClock(t *testing.T) {
	root := memfs.New()

	c, err := NewPersistedClock(root, "test-clock")
	require.NoError(t, err)

	testClock(t, c)
}