git-bug/util/lamport/persisted_clock_test.go
2020-12-08 13:07:51 +01:00

18 lines
275 B
Go

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)
}