mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
13 lines
226 B
Go
13 lines
226 B
Go
|
package protocol
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func TestCalcMessageClockWithoutLastObservedValue(t *testing.T) {
|
||
|
result := CalcMessageClock(0, 1)
|
||
|
require.Equal(t, clockBumpInMs+1, result)
|
||
|
}
|