Implement Epoch and Version setters on ResponseMetaHeader

This commit is contained in:
Leonard Lyubich 2020-02-14 12:14:19 +03:00
parent 9a98dffa62
commit a21e42ea4f
2 changed files with 20 additions and 0 deletions

View file

@ -88,3 +88,17 @@ func TestMetaRequest(t *testing.T) {
})
}
}
func TestRequestMetaHeader_SetEpoch(t *testing.T) {
m := new(ResponseMetaHeader)
epoch := uint64(3)
m.SetEpoch(epoch)
require.Equal(t, epoch, m.GetEpoch())
}
func TestRequestMetaHeader_SetVersion(t *testing.T) {
m := new(ResponseMetaHeader)
version := uint32(3)
m.SetVersion(version)
require.Equal(t, version, m.GetVersion())
}