replace unicode arrows again (#26732)
This commit is contained in:
parent
ee67c113e5
commit
a5e9741d35
40 changed files with 125 additions and 125 deletions
|
|
@ -56,7 +56,7 @@ class DeltaPropagationSelectorSpec extends WordSpec with Matchers with TypeCheck
|
|||
DeltaPropagation(
|
||||
selfUniqueAddress,
|
||||
false,
|
||||
Map("A" -> Delta(DataEnvelope(deltaA), 1L, 1L), "B" → Delta(DataEnvelope(deltaB), 1L, 1L)))
|
||||
Map("A" -> Delta(DataEnvelope(deltaA), 1L, 1L), "B" -> Delta(DataEnvelope(deltaB), 1L, 1L)))
|
||||
selector.collectPropagations() should ===(Map(nodes(0) -> expected))
|
||||
selector.collectPropagations() should ===(Map.empty[UniqueAddress, DeltaPropagation])
|
||||
selector.cleanupDeltaEntries()
|
||||
|
|
@ -72,8 +72,8 @@ class DeltaPropagationSelectorSpec extends WordSpec with Matchers with TypeCheck
|
|||
DeltaPropagation(
|
||||
selfUniqueAddress,
|
||||
false,
|
||||
Map("A" -> Delta(DataEnvelope(deltaA), 1L, 1L), "B" → Delta(DataEnvelope(deltaB), 1L, 1L)))
|
||||
selector.collectPropagations() should ===(Map(nodes(0) -> expected, nodes(1) → expected))
|
||||
Map("A" -> Delta(DataEnvelope(deltaA), 1L, 1L), "B" -> Delta(DataEnvelope(deltaB), 1L, 1L)))
|
||||
selector.collectPropagations() should ===(Map(nodes(0) -> expected, nodes(1) -> expected))
|
||||
selector.cleanupDeltaEntries()
|
||||
selector.hasDeltaEntries("A") should ===(true)
|
||||
selector.hasDeltaEntries("B") should ===(true)
|
||||
|
|
@ -92,8 +92,8 @@ class DeltaPropagationSelectorSpec extends WordSpec with Matchers with TypeCheck
|
|||
DeltaPropagation(
|
||||
selfUniqueAddress,
|
||||
false,
|
||||
Map("A" -> Delta(DataEnvelope(deltaA), 1L, 1L), "B" → Delta(DataEnvelope(deltaB), 1L, 1L)))
|
||||
selector.collectPropagations() should ===(Map(nodes(0) -> expected1, nodes(1) → expected1))
|
||||
Map("A" -> Delta(DataEnvelope(deltaA), 1L, 1L), "B" -> Delta(DataEnvelope(deltaB), 1L, 1L)))
|
||||
selector.collectPropagations() should ===(Map(nodes(0) -> expected1, nodes(1) -> expected1))
|
||||
// new update before previous was propagated to all nodes
|
||||
selector.update("C", deltaC)
|
||||
val expected2 = DeltaPropagation(
|
||||
|
|
@ -105,7 +105,7 @@ class DeltaPropagationSelectorSpec extends WordSpec with Matchers with TypeCheck
|
|||
"C" -> Delta(DataEnvelope(deltaC), 1L, 1L)))
|
||||
val expected3 =
|
||||
DeltaPropagation(selfUniqueAddress, false, Map("C" -> Delta(DataEnvelope(deltaC), 1L, 1L)))
|
||||
selector.collectPropagations() should ===(Map(nodes(2) -> expected2, nodes(0) → expected3))
|
||||
selector.collectPropagations() should ===(Map(nodes(2) -> expected2, nodes(0) -> expected3))
|
||||
selector.cleanupDeltaEntries()
|
||||
selector.hasDeltaEntries("A") should ===(false)
|
||||
selector.hasDeltaEntries("B") should ===(false)
|
||||
|
|
|
|||
|
|
@ -112,27 +112,27 @@ class ReplicatorMessageSerializerSpec
|
|||
checkSerialization(ReadResult(None))
|
||||
checkSerialization(
|
||||
Status(
|
||||
Map("A" -> ByteString.fromString("a"), "B" → ByteString.fromString("b")),
|
||||
Map("A" -> ByteString.fromString("a"), "B" -> ByteString.fromString("b")),
|
||||
chunk = 3,
|
||||
totChunks = 10,
|
||||
Some(17),
|
||||
Some(19)))
|
||||
checkSerialization(
|
||||
Status(
|
||||
Map("A" -> ByteString.fromString("a"), "B" → ByteString.fromString("b")),
|
||||
Map("A" -> ByteString.fromString("a"), "B" -> ByteString.fromString("b")),
|
||||
chunk = 3,
|
||||
totChunks = 10,
|
||||
None, // can be None when sending back to a node of version 2.5.21
|
||||
Some(19)))
|
||||
checkSerialization(
|
||||
Gossip(
|
||||
Map("A" -> DataEnvelope(data1), "B" → DataEnvelope(GSet() + "b" + "c")),
|
||||
Map("A" -> DataEnvelope(data1), "B" -> DataEnvelope(GSet() + "b" + "c")),
|
||||
sendBack = true,
|
||||
Some(17),
|
||||
Some(19)))
|
||||
checkSerialization(
|
||||
Gossip(
|
||||
Map("A" -> DataEnvelope(data1), "B" → DataEnvelope(GSet() + "b" + "c")),
|
||||
Map("A" -> DataEnvelope(data1), "B" -> DataEnvelope(GSet() + "b" + "c")),
|
||||
sendBack = true,
|
||||
None, // can be None when sending back to a node of version 2.5.21
|
||||
Some(19)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue