mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 18:23:08 +03:00
20 lines
307 B
Go
20 lines
307 B
Go
|
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)
|
||
|
}
|