aboutsummaryrefslogblamecommitdiffstats
path: root/util/lamport/persisted_clock_test.go
blob: aacec3bfed458957b0e60e456a7265610f880f24 (plain) (tree)


















                                                                 
package lamport

import (
	"io/ioutil"
	"path"
	"testing"

	"github.com/stretchr/testify/require"
)

func TestPersistedClock(t *testing.T) {
	dir, err := ioutil.TempDir("", "")
	require.NoError(t, err)

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

	testClock(t, c)
}